-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
Enhance dmht
tcache command
#4355
Conversation
Regression is failing for dmht command.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done. i have added some comments which should improve slightly the code, but overall looks very good.
bcf5f41
to
fe51cf8
Compare
37b6146
to
3a6d404
Compare
a089e91
to
b854d84
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
b854d84
to
5d92b0f
Compare
Indirect leak of 153 byte(s) in 9 object(s) allocated from:
#0 0x7f69b746c32a in __interceptor_strdup /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_interceptors.cpp:454
#1 0x7f69aad23c6c in convert_import (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xb23c6c) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#2 0x7f69aad36d06 in relocs (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xb36d06) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#3 0x7f69aac9ec34 in rz_bin_set_and_process_relocs (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xa9ec34) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#4 0x7f69aac94fee in rz_bin_object_process_plugin_data (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xa94fee) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#5 0x7f69aac926a0 in rz_bin_object_new (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xa926a0) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#6 0x7f69aac691ee in rz_bin_file_new_from_buffer (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xa691ee) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#7 0x7f69aac77185 in rz_bin_open_buf (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xa77185) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#8 0x7f69aac789d5 in rz_bin_open_io (/home/z3phyr/personal/rizin/build/librz/bin/librz_bin.so.0.8+0xa789d5) (BuildId: 8f5210242ac946677b0c2b190bacfb113b4edae5)
#9 0x7f69b625271d in rz_get_glibc_version_64 (/home/z3phyr/personal/rizin/build/librz/core/librz_core.so.0.8+0xe5271d) (BuildId: 6b18397fd428f12501a33ccd4ec493111691a05e)
#10 0x55c08c7737e8 in test_get_glibc_version (/home/z3phyr/personal/rizin/build/test/unit/test_glibc_version+0x27e8) (BuildId: adc47f0e0b2eb76b84091785dcd4f2d34ce66ff8)
#11 0x55c08c773b9e in all_tests (/home/z3phyr/personal/rizin/build/test/unit/test_glibc_version+0x2b9e) (BuildId: adc47f0e0b2eb76b84091785dcd4f2d34ce66ff8)
#12 0x55c08c77329a in main (/home/z3phyr/personal/rizin/build/test/unit/test_glibc_version+0x229a) (BuildId: adc47f0e0b2eb76b84091785dcd4f2d34ce66ff8)
#13 0x7f69b5243ccf (/usr/lib/libc.so.6+0x25ccf) (BuildId: c0caa0b7709d3369ee575fcd7d7d0b0fc48733af)
Looking into this issue, the same code block is invoked from |
This comment was marked as resolved.
This comment was marked as resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Various small things but apart from those - LGTM.
- Add tcache heap heuristics - Fetch glibc version from libc - Add unit testcases for glibc version
This reverts commit 0dc6ea8.
2242d15
to
d21eba3
Compare
@giridharprasath this broke PowerPC builds:
and ARM:
and SystemZ:
Please check the following link: https://github.com/rizinorg/rizin/runs/22962762398 |
Your checklist for this pull request
Detailed description
dmht
command to find tcache bins based on tls dataFor the program mentioned in this comment, below is the output:
Example code:
Output:
Test plan
Wrote testcases for glibc version parsing.
...
Closing issues
Fixes #1259
PS: Main idea is from pwndbg heap heuristics module