radare2/libr/magic
meme fcf4d8dcad
Add size parameter to r_magic_load_buffer ##util (#18760)
It is still UTF-8, and thus not valid to have a NULL inside of the the
file, but sometimes inputs are not NULL-terminated
2021-05-27 16:27:04 +02:00
..
d Add Android boot image magic (#17193) 2020-07-03 18:51:32 +02:00
apprentice.c Add size parameter to r_magic_load_buffer ##util (#18760) 2021-05-27 16:27:04 +02:00
ascmagic.c Completely kill the msvc/ directory and the unix-specific includes workarounds 2019-03-19 17:34:02 +01:00
deps.mk Fix #10300 - Link issues --with-sysmagic 2018-06-11 03:36:45 +02:00
file_opts.h * Initial import of r_magic 2011-09-10 01:30:03 +02:00
file.h Add size parameter to r_magic_load_buffer ##util (#18760) 2021-05-27 16:27:04 +02:00
fsmagic.c Fix some warnings 2020-11-16 18:56:21 +08:00
funcs.c Fix last covs 2020-02-28 17:38:51 +01:00
is_tar.c Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
magic.c Add size parameter to r_magic_load_buffer ##util (#18760) 2021-05-27 16:27:04 +02:00
Makefile Fix #3929 - Enable LTO in sys/static.sh ##build (#17141) 2020-08-13 13:55:39 +08:00
mconfig.h Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
mdump.c Fix ctime/asctime and refactor r_asctime_r ##refactor (#17911) 2020-11-12 12:25:33 +08:00
meson.build Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
names.h * Initial import of r_magic 2011-09-10 01:30:03 +02:00
patchlevel.h Introduce the r_magic_load_buffer() api and boolify a bit ##search (#15617) 2019-12-12 17:12:33 +01:00
README * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00
softmagic.c Massage RRegex to fix codingstyle and a null deref. ##regexp 2021-01-08 04:42:07 +01:00
tar.h * Implement RBinCreate.elf-arm 2011-09-12 01:47:28 +02:00

This implementation of file(1) has been taken from OpenBSD,
I have removed the elf part which reduces more than 1KLOC.
I have also cleaned up the code in order to fix some warnings
and integrate with r2 syntax. magic_ api is now r_magic_

   --pancake

$ cvs -d anoncvs@anoncvs.ca.openbsd.org:/cvs get src/usr.bin/file

* understand and document how conditional works