Commit Graph

103 Commits

Author SHA1 Message Date
pancake
235daf3799 Track recursivity calls in the HFS parser to prevent stack exhaution ##crash 2023-05-02 10:50:29 +02:00
pancake
25d38bb99f Add test and fix oobread in the hfs parser ##fs 2023-04-25 20:06:28 +02:00
pancake
a309460b2e Fix division by zero in the HFS parser ##crash 2023-04-20 15:56:11 +02:00
pancake
92dd4ac507 Fix oobread segfault in the grub's HFS parser ##crash
* Reproducer: d1193639-a30b-4b35-abf5-6ded4a8a396f
2023-04-19 21:32:35 +02:00
pancake
5e4a86f564 Fix ininite loop in the ext2 grub code (DDoS) ##crash 2023-04-19 19:40:49 +02:00
pancake
2bea582527 Fix #21439 - Fix missaligned read in the hfs parser 2023-03-08 12:34:49 +01:00
pancake
a79add6dff
Update sdb to remove double include paths ##build
* Updated pkg-config paths
2022-11-19 01:05:18 +01:00
pancake
b6e7292019 Enable linting for trailing tabs ##lint 2022-08-22 23:25:40 +02:00
pancake
aa990230cc Lint for col0 eprintfs 2022-08-15 18:28:07 +02:00
pancake
7699f37c7d Fix warnings spotted by latest XCode (unused variables) 2022-03-17 10:12:02 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
Sergi Àlvarez i Capilla
46a69a5014 Fix all the latest covs which spotted new findings 2022-02-15 12:05:50 +01:00
pancake
fb0ec6ed00
Use stdint like if there was no yesterday ##refactor
* stdint is needed to build r2, so there's no need to keep using
  those weak basic types anymore, and we can just alias them
2022-01-09 19:48:16 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
pancake
23ad9b50ee
Fix #12335 - ignore system-installed r2 includes ##build 2021-05-28 00:45:48 +02:00
pancake
530c737d5d
Fix incorrect use of non-const strings and fiz zousans of warnings (#18544)
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-06 12:45:19 +02:00
Anton Kochkov
e0109897f9 Fix GRUB compilation with TinyCC 2020-12-04 16:30:23 +08:00
Liumeo
f18e431287
Fix s390x db/cmd/cmd_fs (#17950) 2020-11-25 17:49:29 +08:00
Liumeo
db450794bc
Clean grub/kern/mm.c ##refactor (#17826) 2020-10-26 13:58:34 +08:00
Liumeo
e9a697f2a9
shlr/grub - fix MSVC warning pointer truncation (#17820) 2020-10-23 13:20:25 +08:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers (#17249) ##build
* Avoid duplication of SDB headers in libr/include

SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.

* Fix pkgconfig file generation
2020-07-21 10:28:43 +02:00
Liumeo
7ffb7cf77a
Do not redefine assert in dis.c (#16694) 2020-04-28 19:35:29 +02:00
Liumeo
34be38f96e
remove dl.h and dl.c (#16696) 2020-04-24 09:17:36 +02:00
pancake
8e65149d88
Do not redefine assert in reiserfs.c (#16656) 2020-04-20 17:50:22 +08:00
Florian Märkl
0eb98d24be
Fix all Warnings for GCC 9 (#16223) 2020-03-17 13:31:28 +01:00
radare
72093ac706
Fix #16138 - Do not preincrement when it's not necessary (#16151) 2020-03-05 19:06:59 +01:00
pancake
6fdbf5b1c2 Fix static-build without GPL code 2019-08-02 09:51:09 -07:00
radare
dc0892a1a0
Towards emscripten build fix (update sdb) ##build 2019-07-07 16:52:41 +02:00
GustavoLCR
06ad8f651f Fix hfs mounting for Windows ##fs 2019-02-04 13:06:53 -06:00
David CARLIER
2eb706029c Few code/cleanups mem leaks potential (#12591) 2018-12-31 00:21:47 +01:00
GustavoLCR
7530895d0a Fix a few clang scan-build bugs (#12562)
* Removed unnecessary variable from libr/core/disasm.c
* Removed not necessary assignment in libr/core/casm.c
* Removed not used assignment in libr/bin/dwarf.c
* Rem. duplicate declaration and not used values
* Fixed potential memory leak in java/class.c
* Fixed potential memory leak in ragg2
* Removed unnecessary variable in visual.c
* Another potential memory leak in class.c
* Removed not used value assignment
* Fixed memory leak in dwarf.c
* Removed not needed assignments
* Remove more not used assignments
* Refactored where bin_sections gets arch & bits for clarity
* Removed more assignments that are not used
* Rem. more unused assignments
* Surround assignment with paranthesis
2018-12-26 12:54:12 +01:00
dav1901
f24556c189 Fix few clang-analyzer warnings (#12548) 2018-12-24 01:18:12 +01:00
pancake
fd2acacd2d Fix build 2018-12-15 17:36:26 +01:00
pancake
161f014369 Remove noisy warning in iso9660 2018-12-15 16:04:59 +01:00
pancake
f2c06575d8 Fix #12479 - negative disk_reads may not be allowed ##crash 2018-12-15 13:01:35 +01:00
dav1901
5b644dcb74 Minor cleanups/fixes (#12478) 2018-12-14 00:17:50 +01:00
David CARLIER
74da0eb115 Few grub/bochs fixes 2018-11-22 12:12:11 +01:00
pancake
53635d59a0 Fix #12141 - minor leaks in grub code 2018-11-19 12:14:01 +01:00
dav1901
dfb9b0e5ae Fix minor leaks in ufs and mz 2018-11-14 01:57:23 +01:00
David CARLIER
6c5d98b45c Fix grub minix plugin build. (#12131)
Using wrapper instead, and might be safe anyway
in case allocators impl change.
2018-11-12 16:57:16 +01:00
Young-X
99641414fd Fix multiple potential vulnerabilities (#12113)
* bin_xtr_fatmach0.c: fix memory leak in function extractall

Signed-off-by: Young_X <YangX92@hotmail.com>

* check return value of r_list_newf in function oneshotall

Signed-off-by: Young_X <YangX92@hotmail.com>

* ufs: prevent memory leak

Signed-off-by: Young_X <YangX92@hotmail.com>

* minix: prevent memory leak

Signed-off-by: Young_X <YangX92@hotmail.com>

* jfs: fix memory leak in grub_js_find_file

Signed-off-by: Young_X <YangX92@hotmail.com>

* r_anal_plugin_free: fix null pointer deference for para a

Signed-off-by: Young_X <YangX92@hotmail.com>

* fix null pointer deference in function fix_back_edge_dummy_nodes
since ptr from and to may be NULL

Signed-off-by: Young_X <YangX92@hotmail.com>
2018-11-12 12:08:24 +01:00
Lowly Worm
077b341a16 explicitly sign all bitfields 2018-11-11 16:10:15 -08:00
pancake
4eec87cdf6 More warnings fixed 2018-07-14 10:58:19 +02:00
David CARLIER
19160ff217 Fix macros redefinitions warning (#10284) 2018-06-07 09:41:55 +02:00
pancake
d43d2f738d Fix asm.immstr 2017-11-14 03:59:24 +09:00
pancake
561630745b Replace the zero-length array in iso9660 with a macro 2017-11-07 15:02:00 +01:00
pancake
69e1e99ff0 Do not use zero length arrays in iso9660 2017-11-07 14:40:19 +01:00
pancake
0c81ce3651 Fix uninitialized partition type issue in 'mp gpt' 2017-11-07 11:45:10 +01:00
pancake
20c0b83743 Avoid infinite loop in iso9660 2017-11-07 01:34:11 +01:00