I'm a 22-year-old student and IT intern @42 Paris.
tmatis / ft_mallocator Goto Github PK
View Code? Open in Web Editor NEWTest your malloc protection
Test your malloc protection
I'm a 22-year-old student and IT intern @42 Paris.
./mallocator bash
free(): invalid pointer
[CRASH] abort
โโโ ?? in ??:0 (0x1391)
โโโ ?? in ??:0 (0x1a31)
โโโ ?? in ??:0 (0x389ff)
โโโ programmable_completions in ??:0 (0x8864b)
โโโ ?? in ??:0 (0x38957)
โโโ shell_is_restricted in ??:0 (0x2253c)
โโโ ?? in ??:0 (0x7c7ed)
โโโ fg_builtin in ??:0 (0x923db)
โโโ history_builtin in ??:0 (0x9422b)
โโโ read_builtin in ??:0 (0x96ba2)
โโโ ?? in ??:0 (0x1999)
โโโ named_function_string in ??:0 (0x358d8)
โโโ ?? in ??:0 (0x33603)
โโโ ?? in ??:0 (0x32fd4)
โโโ ulimit_builtin in ??:0 (0x9c8ae)
โโโ file_error in ??:0 (0x48531)
โโโ shell_execve in ??:0 (0x382f6)
โโโ ?? in ??:0 (0x38c5d)
โโโ execute_command_internal in ??:0 (0x3bf1f)
โโโ execute_command in ??:0 (0x3c559)
โโโ reader_loop in ??:0 (0x22cb7)
โโโ main in ??:0 (0x218e1)
โโโ ?? in ??:0 (0x1adc)
โโโ ?? in ??:0 (0x2328f)
โโโ ?? in ??:0 (0x23349)
โโโ ?? in ??:0 (0x1b6c)
โโโ _start in ??:0 (0x2191d)
-malloc_test: $(OBJS) $(MAIN_OBJ) $(LIBFT)
- @$(MAKE) DEBUG=1
- $(CC) $(CFLAGS) $^ -fsanitize=undefined -rdynamic -o $@ $(INCLUDE_FLAGS) -L../ft_mallocator -lmallocator
+malloc_test: debug
+ $(CC) $(CFLAGS) $(OBJS) $(MAIN_OBJ) $(LIBFT) -fsanitize=undefined -rdynamic -o $@ $(INCLUDE_FLAGS) $(LIB_FLAGS) -L. -lmallocator
The malloc_test rule should be dependent on a rule like debug. This enforces the object files to be created with -g symbols. The debug rule and CFLAGS variable should look something like this:
CFLAGS =-Wall -Wextra -Werror$(if $(DEBUG), -g -D DEBUG=1)$(if $(FSAN), -g -D DEBUG=1 -fsanitize=address)
debug:
@$(MAKE) DEBUG=1
rebug: fclean
@$(MAKE) debug
in symbolizer.c
MBY: We write every address, we over fill the kernels buffer and the write block himself
We need to send address, get result etc..
Open debug symbol only once.
This will be used lick valgrind
Hi !
Thanks a lot for your tool, it's been really useful :)
I've been trying to test my project pipex and just realised that I cannot put any " inside the ARGS field in config.sh.
ARGS="file1 "sleep 1" cat file2"
just become file1
and cannot fetch any route. Removing the " or switching to ' solve the problem.
I don't know if you can fix that, but maybe putting a warning would help people with this issue (especially on pipex).
Main hook is not triggered when those library are linked
-lXext
-lX11
the level of match is 3 not 2
and this is 2 for clang 12 and bellow
SOLUTION:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.