Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from radareorg:master #34

Open
wants to merge 152 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
16be7d4
Add support for HTTP headers in the RSocket API ##socket
trufae Dec 11, 2024
379fbba
Null response from curl may be understood as an error
radare Dec 11, 2024
d469684
Fix oobwrite and uaf in RStr.fixspaces
radare Dec 11, 2024
8f18eac
Refix uninitialized vsize in on command
condret Dec 11, 2024
8ae259a
Add help for /mm and /mb, fix asserts and false positives ##search
trufae Dec 12, 2024
4cfe43f
Use more RBinFileOptions - wip refactoring
trufae Dec 12, 2024
19ec4de
Dont show aeim help when calling aei? ##shell
radare Dec 12, 2024
637eba1
Trim space in wa+ output
radare Dec 12, 2024
e8a8e6a
Run `aei` when no file is loaded, add a test just in case ##esil
radare Dec 13, 2024
d8693ec
Allow both $BI and $Bi ##shell
astralia Dec 16, 2024
7a7999e
Improve autonaming for calltail relocs ##analysis
trufae Dec 17, 2024
e0ca890
Remove RArchConfig from RReg
condret Dec 14, 2024
f79146e
Initial import of the new C parser - disabled by default ##analysis
trufae Dec 17, 2024
c42a2af
Add 'p8b' as an alias for 'p8 $BS@$BB' ##print
radare Dec 18, 2024
baa288e
Fix #23810 - Fix build on someWindows 10 hosts by conforming the C99…
numonce Dec 18, 2024
7ace5df
Fix regressions in the 'on' command ##shell
trufae Dec 19, 2024
3165104
Add axffq and axff* commands ##shell
radare Dec 19, 2024
3d85801
Improve 'pdsfq', avoid some dupes and handle fn flags ##print
trufae Dec 19, 2024
333941b
Implement json output for aflaj command ##shell
radare Dec 19, 2024
d887d8b
update macos github action runner images ##build
jjaareet Dec 19, 2024
aea2b68
Add :tls on io.ptrace and fix dxr code injection command ##debug
trufae Dec 19, 2024
74636e3
Fix memory leaks in the new c parser
radare Dec 19, 2024
8f9bf35
Fix ~$$? ~?$$ and add tests ##cons
trufae Dec 19, 2024
4e114ab
Initial implementation of the R2R_SHALLOW random test skip ##tests
radare Dec 19, 2024
577762c
Reduce the amount of getenv calls in r2r ##tests
radare Dec 19, 2024
85637b9
Add qjs as a subproject ##build
satk0 Dec 13, 2024
c6e681b
Replace win ci/cd frida meson with standard meson ##build
satk0 Dec 19, 2024
0a16024
License clarifications ##doc
trufae Dec 20, 2024
248cd01
Some improvements for the radiff2 cli usage ##tools
trufae Dec 20, 2024
790eed9
Show odata/ndata in json and normal output from `cw` ##print
trufae Dec 20, 2024
552d65a
pfo files must be .h or .r2 ##print
trufae Dec 21, 2024
ebe352c
Set Cd4/8 metadata from RBinFields via .ih* ##bin
radare Dec 21, 2024
bb40b09
Fix null derefs in the RBin.io plugin ##bin
radare Dec 21, 2024
31864f3
Handle invalid subcommands under om ##help
trufae Dec 22, 2024
decded3
Initial implementation of the bin.aslr ##bin
trufae Dec 22, 2024
dc9e78d
Initial support for RCA COSMAC 1806 uProcessors ##arch
trufae Dec 24, 2024
4c13cc9
Add /B to find possible base addresses ##search
radare Dec 24, 2024
414f9c9
Honor best name in 'afna' when flag starts with "sym." ##analysis
radare Dec 24, 2024
28519d4
Support internal files in @@. ##shell
radare Dec 24, 2024
cd82e41
Fix last covs
radare Dec 25, 2024
e45b9f1
Fix memleak in /B
radare Dec 27, 2024
898e946
Split esil into esil_ops
radare Dec 27, 2024
762d251
Implement sep for cosmac with the new r= esil op ##esil
radare Dec 27, 2024
48efe7c
Refactor the RRegAlias api ##abi
radare Dec 27, 2024
a4935db
Add REsil.opstr with 'ae???' command to list ops with description ##esil
radare Dec 27, 2024
70135d3
Add some pseudo commands for pickle ##arch
dennis-doyensec Dec 27, 2024
de46f7f
Honor Register aliases in RReg.get
radare Dec 27, 2024
1105ab4
Fix RFile.new API
radare Dec 27, 2024
abafb1f
Rename m1 to arm64 ##build
prodrigestivill Dec 29, 2024
ed4f863
Fixed typo
polluks Dec 30, 2024
fbe18e3
Improve 'd' help message and invalid subcommands ##shell
radare Dec 30, 2024
b3f82d7
Improve arn/drn to manipulate register alias names ##debug
radare Dec 30, 2024
ed86d51
Fix UB in awful logic inside r_anal_function_check_bp_use
radare Dec 30, 2024
c234086
Implement =lj to list sessions in json ##remote
radare Jan 1, 2025
86b06e5
Implement ccdf and improve help for ccd? ##diff
radare Jan 2, 2025
89c5a75
Honor asm.sub.var and asm.imm.trim in ccd ##diff
radare Jan 2, 2025
1f45f87
CVE-2024-56737 - Fix buffer overflow in the HFS parser from grub2 ##c…
radare Jan 2, 2025
4966e1a
Fix string assert on RCons ##crash
radare Jan 2, 2025
91403d0
Fix another overflow in the hfs grub parser ##crash
radare Jan 2, 2025
077f9bb
Fix leaks in ccd
radare Jan 3, 2025
2e68499
Use packed RSysBits everywhere and deprecate R_SYS_BITS_X ##util
trufae Jan 3, 2025
a205678
Fix division by zero in r_anal_function_coverage ##crash
radare Jan 7, 2025
7aadc14
Fix amount of read bytes from ptrace ##io
radare Jan 7, 2025
7872872
Add 'rx' command to show file size in hexadecimal ##shell
radare Jan 7, 2025
a01c13f
Honor section/segment logic in MZ executables ##bin
trufae Jan 7, 2025
18916a4
Install the r2sdb executable in the bindir ##build
radare Jan 7, 2025
d02b7d5
Fix #23839 - Deprecate $$ in esil and have it as a custom op for /E #…
radare Jan 8, 2025
f022a80
Adding catppuccin mocha theme ##cons
evilcel3ri Jan 8, 2025
821ca88
Fix r_io_bank_locate ##io
condret Jan 4, 2025
1f314ac
Fix offroad leak in r2r
radare Jan 8, 2025
565094c
Do not apply relocs in debugger mode ##debug
trufae Jan 8, 2025
a591dac
Fix random segfault caused by unaligned fields on macos-m1 ##crash
radare Jan 9, 2025
f6c24f2
Fix #23865 - imports vaddr on some ELFs reporting below baddr locatio…
trufae Jan 9, 2025
86daab0
Enable Dependabot ##build
prodrigestivill Jan 9, 2025
14a9e80
Update upload-artifact to v4 ##build
prodrigestivill Jan 9, 2025
d8dbd32
Update action-gh-release to v2.2.1 ##build
prodrigestivill Jan 9, 2025
c5a6c76
Improve operand parsing to fix some x86 zignatures ##arch
edeca Jan 9, 2025
b70b008
Add dm** to create an IO map for every Debug map ##debug
radare Jan 9, 2025
0cfd0fb
Improve permissions string parsing (RStr.rwx) ##util
radare Jan 9, 2025
452d7bd
Implement dm*- to undo the dm** mappings ##debug
radare Jan 9, 2025
cb3c5e9
Add a test case for cw in debug mode
jukuisma Jan 11, 2025
473ad86
Make visual HUD "_" seek undoable ##visual
kyufie Jan 12, 2025
34bd1ef
##build Bump github/codeql-action from 2 to 3
dependabot[bot] Jan 13, 2025
d4dc42b
Bump actions/setup-python from 4 to 5 ##ci
dependabot[bot] Jan 13, 2025
2b45784
Bump al-cheb/configure-pagefile-action from 1.3 to 1.4 ##ci
dependabot[bot] Jan 13, 2025
f30f6e0
Fix latest leaks spotted by coverity and indent dotnet.c
trufae Jan 13, 2025
e5d2995
Deprecate RLang.list() ##api
radare Jan 13, 2025
9902219
Optimize macos workflow ##build
prodrigestivill Jan 13, 2025
e22cfd0
Allow update library paths on macOS builds ##build
prodrigestivill Jan 13, 2025
4e0f56c
Insert hex/asm with 'vi' and 'vI' in panels. Use '`' to rotate old mo…
radare Jan 13, 2025
e672c13
Fix #23809 - Add 'afbs' command, like 'afls' but for basic blocks ##…
trufae Jan 14, 2025
05ebe2e
Don't use r_ prefix in internal functions from r_io_dsc
radare Jan 14, 2025
07be136
Remove globals and eprintfs from io.self ##io
radare Jan 14, 2025
92d45a6
Fix shifting too much on signed pxkb ##print
radare Jan 14, 2025
0f85675
Make r_bin_dbgitem_at api public
radare Jan 14, 2025
a7e958f
Fix huge leak when unloading an elf ##bin
radare Jan 14, 2025
bf6227e
Add last pseudo instructions to pickle ##arch
dennis-doyensec Dec 27, 2024
ddacbae
Rename RIOPlugin.widget to RIOPlugin.data ##abi
radare Jan 14, 2025
01c8ba5
Try with LOCAL dlopen before global attempt ##core
radare Jan 14, 2025
bf1558f
Add *data in the RCorePlugin struct ##core
radare Jan 14, 2025
f174256
Fix parsing of memory operands for x87 FPU instructions ##arch
edeca Jan 10, 2025
70c14ba
Downgrade the codeql checks to please the ci
radare Jan 14, 2025
ca57c4d
Add asm.bytes.ascmt option to display instruction bytes in disasm as …
radare Jan 15, 2025
5ecb2db
Search progressbar honors scr.progressbar and scr.interactive ##search
radare Jan 15, 2025
555ed74
Don't clear line in search scan (#23901)
trufae Jan 15, 2025
b7d2fec
Enforce that cw debug mode test case prints nothing to stderr
jukuisma Jan 15, 2025
d6cd906
Resolve more memory leaks in the ELF parser
trufae Jan 16, 2025
0327f7b
Deprecate unused funcs and macros
jukuisma Jan 16, 2025
e798bd4
Deprecate lowercase r_warn_if_(reached|fail) macros
jukuisma Jan 16, 2025
a2e4d50
Show current map perms with `dmp.` and better subcommand error handle…
radare Jan 17, 2025
ccc1ab8
Initial RIOMapAttr apis, new oma for attributes and old oma renamed t…
radare Jan 17, 2025
85eb13c
Set map attributes with omf too ##shell
radare Jan 17, 2025
6b74c6f
Show map attributes in `om,` ##io
radare Jan 17, 2025
90bb88a
Show current map permissions with "om" ##shell
radare Jan 17, 2025
44a501b
Fix recentrly introduced double free in the BFLT parser
trufae Jan 17, 2025
6cc3737
Rename r_bin_symbol_unsafe -> r_bin_import_tags
jukuisma Jan 17, 2025
caa949e
Rename r_flag_get_i -> r_flag_get_in
jukuisma Jan 17, 2025
627a4fb
Rename r_anal_list_vtables -> r_anal_vtables_list
jukuisma Jan 17, 2025
e2db955
Rename r_cons_pal_update_event -> r_cons_pal_reload
jukuisma Jan 17, 2025
e96e55c
Rename r_buf_new_slurp -> r_buf_new_from_file
jukuisma Jan 17, 2025
6e49b26
Cleanup and update the QJS dependency ##build
satk0 Jan 20, 2025
b4f74f0
Unlimited stack size to fix macos-asan maximum call stack exceed errors
trufae Jan 20, 2025
412d93a
Fix #23910 - Fix recent regression about invalid word size in dbt
radare Jan 20, 2025
51fa368
Add support for solc0.8.20 opcodes ##arch
Silur Jan 21, 2025
134c90c
Bump github/codeql-action from 2 to 3
dependabot[bot] Jan 21, 2025
a14cb18
Rename try_walkthrough_jmptbl -> r_anal_jmptbl_walk ##refactor
jukuisma Jan 21, 2025
aa41958
cL as an alias for Lc ##shell
radare Jan 21, 2025
60befec
Fix #23903 - compile on pi4, debian bookworm due to missing '_atomic_…
bsekisser Jan 21, 2025
6a81e61
Fix few low hanging memleak fruits
radare Jan 21, 2025
e7653cb
Fix help message for symbol entrypoints ##shell
trufae Jan 21, 2025
3288c54
Mention allocations, null checks and logging apis ##doc
radare Jan 21, 2025
734f8df
Switch r_bp_traptrace_at return value to bool
jukuisma Jan 22, 2025
72ab8ba
Switch r_line_hist_add return value to bool
jukuisma Jan 22, 2025
ec4025b
Switch r_core_cmd_buffer return value to bool
jukuisma Jan 22, 2025
6c5ac57
Switch r_core_gdiff_fcn return value to bool
jukuisma Jan 22, 2025
2c770da
Use binary file instead of 'SourceFile' in dex debug info ##bin
trufae Jan 23, 2025
25fca65
Add --without-qjs and -Dwith_qjs=false options ##build
radare Jan 23, 2025
4d542aa
Attempt to workaround a false positive warning in gcc
trufae Jan 23, 2025
d8ad306
Add separate user_plugins=python to compile pickle/py code ##build
trufae Jan 23, 2025
1c4ec42
Install the SDB headers with meson ##build
trufae Jan 23, 2025
6e66eb5
Update sdb for the missing version.h
radare Jan 23, 2025
b46c77e
Update sdb again
radare Jan 23, 2025
4533d57
Move visibility cflags from rlang to qjs
trufae Jan 23, 2025
81145ad
Add arm asm.parser for the android builds
radare Jan 23, 2025
3027141
Simplify and improve the 'dcu' subcommand handling ##debug
radare Jan 24, 2025
0254b43
Enable dbg.hwbp on macOS-arm64 (not just x64) ##debug
radare Jan 24, 2025
e171431
Remove debug eprintf and unexistant asm.bf for android
radare Jan 24, 2025
0f7d41c
Slightly better error checking for the debug/arch setup
radare Jan 24, 2025
3704f48
Fix flaky io/resize tests
jukuisma Jan 24, 2025
be88771
Add colorcode field to r_cons_grep_t struct
jukuisma Jan 24, 2025
8741d91
Do not turn off io.va with cfg.debug ##debugger
radare Jan 24, 2025
40fe8e8
Improve Lc/Lc- to handle home and extension less plugins ##core
radare Jan 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Cleanup and update the QJS dependency ##build
  • Loading branch information
satk0 authored Jan 20, 2025
commit 6e49b260fedb7b836d206c3280f1450d314ec642
48 changes: 0 additions & 48 deletions shlr/qjs/Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
include deps.mk

# QJS_BRANCH?=quickjs-ng
# USE_MINIFY=0
# USE_UGLIFY=0
# QJS_COMMIT=df44d662912c8999ae4cf6926500b33e03b53589
#
# ifeq ($(QJS_BRANCH),frida)
# QJS_NAME=quickjs-frida
# QJS_GITURL=https://github.com/frida/quickjs
# QJS_CFLAGS+=-DQJS_NAME="\\"$(QJS_NAME)\\""
# QJS_CFLAGS+=-DQJS_FRIDA=1
# else ifeq ($(QJS_BRANCH),quickjs-ng)
# QJS_NAME=quickjs-ng
# QJS_GITURL=https://github.com/quickjs-ng/quickjs
# QJS_CFLAGS+=-DQJS_NAME="\\"$(QJS_NAME)\\""
# QJS_CFLAGS+=-DQJS_FRIDA=0
# else
# QJS_NAME=quickjs-bellard
# QJS_GITURL=https://github.com/bellard/quickjs
# QJS_CFLAGS+=-DQJS_NAME="\\"$(QJS_NAME)\\""
# QJS_CFLAGS+=-DQJS_FRIDA=0
# endif

#.PHONY: all

QJS_CFLAGS+=-D QJS_LIBC=$(QJS_LIBC)
QJS_CFLAGS+=-D QJS_NOABORT=1
Expand All @@ -32,10 +9,6 @@ QJS_CFLAGS+=-fvisibility=hidden

QJS_LIBS+=-lr_core -lr_config -lr_cons

#QJS_VERSION=$(shell cat src/VERSION)
# XXX: Is version needed when there is QJS_VERSION_STRING?
QJS_VERSION=0.6.1

JS_CFILES:=js_repl.c js_r2papi.c js_require.c

all: $(JS_CFILES)
Expand All @@ -46,21 +19,6 @@ node_modules:
mkdir -p node_modules
npm i

# sync-qjs qjs-sync sync:
# $(MAKE) $(QJS_NAME)
# rm -rf src
# mv $(QJS_NAME) src
# rm -rf src/.git
# mkdir -p src2
# ls src
# # cp $(QJS_FILES) src/*.h src/Makefile src/VERSION src2/
# cp $(QJS_FILES) src/*.h src/Makefile src2/
# rm -rf src
# mv src2 src
# sed -i -e 's/CONFIG_VERSION/"$(QJS_VERSION)"/' src/quickjs.c
# git add src
# git rm -f src/quickjs.c-e

NM=node_modules

R2PAPI_FILES=
Expand Down Expand Up @@ -178,11 +136,5 @@ lang_qjs.${EXT_SO}: js_repl.c js_require.c
-$(CC) -flto -D 'CONFIG_VERSION="$(VERSION)"' -g -Oz -Wl,-dead_strip -std=c99 $(DUK_CFLAGS) -I quickjs $(QJS_CFLAGS) $(CFLAGS) -fPIC $(LDFLAGS_LIB) \
-o lang_qjs.$(EXT_SO) $(QJS_FILES) $(QJS_LIBS) qjs.c

#$(QJS_NAME):
# git clone $(QJS_GITURL) $(QJS_NAME)
#ifeq ($(QJS_BRANCH),quickjs-ng)
# cd $(QJS_NAME) && git reset --hard $(QJS_COMMIT)
#endif

o:
make clean && make && make user-install
2 changes: 1 addition & 1 deletion subprojects/qjs.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is autogenerated by acr-wrap

WRAP_wrap_git_url:=https://github.com/quickjs-ng/quickjs
WRAP_wrap_git_revision:=7e292050a21d3dd5076f70116ae95cc5200c40c1
WRAP_wrap_git_revision:=b9dbcf46768b7aed0fc6e208fbab851393f808de
WRAP_wrap_git_directory:=qjs
WRAP_wrap_git_patch_directory:=qjs
WRAP_wrap_git_depth:=1
Expand Down
2 changes: 1 addition & 1 deletion subprojects/qjs.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-git]
url = https://github.com/quickjs-ng/quickjs
revision = 7e292050a21d3dd5076f70116ae95cc5200c40c1
revision = b9dbcf46768b7aed0fc6e208fbab851393f808de
directory = qjs
patch_directory = qjs
depth = 1
2 changes: 0 additions & 2 deletions sys/sanitize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ for a in $SANITIZE ; do
export CFLAGS="${CFLAGS} -fsanitize=$a"
if [ "$a" = leak ]; then
HAVE_LEAKS=0
elif [ "$a" = address ]; then
export CFLAGS="${CFLAGS} -D__ASAN__=1"
fi
done
if [ "${HAVE_LEAKS}" = 0 ]; then
Expand Down