-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add cs_buffer. Breaking API change. #2367
Closed
Closed
Commits on May 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 44bb10d - Browse repository at this point
Copy the full SHA 44bb10dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0816274 - Browse repository at this point
Copy the full SHA 0816274View commit details -
Add work around so ASAN binaries don't DEADSIGNAL due to too many ran…
…domized address bits.
Configuration menu - View commit details
-
Copy full SHA for d328cb8 - Browse repository at this point
Copy the full SHA d328cb8View commit details -
Configuration menu - View commit details
-
Copy full SHA for aff1ff7 - Browse repository at this point
Copy the full SHA aff1ff7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b0b734 - Browse repository at this point
Copy the full SHA 6b0b734View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73eaedc - Browse repository at this point
Copy the full SHA 73eaedcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0dbed7 - Browse repository at this point
Copy the full SHA d0dbed7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b401c9 - Browse repository at this point
Copy the full SHA 1b401c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 083efaa - Browse repository at this point
Copy the full SHA 083efaaView commit details -
- Rewrite split to remove leaks and improve runtime by 6% - Add free()
Configuration menu - View commit details
-
Copy full SHA for a037c66 - Browse repository at this point
Copy the full SHA a037c66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9315918 - Browse repository at this point
Copy the full SHA 9315918View commit details -
This reverts commit bf8ee12.
Configuration menu - View commit details
-
Copy full SHA for 46c9baf - Browse repository at this point
Copy the full SHA 46c9bafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 99fca76 - Browse repository at this point
Copy the full SHA 99fca76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97773dc - Browse repository at this point
Copy the full SHA 97773dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0017c2a - Browse repository at this point
Copy the full SHA 0017c2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b58616 - Browse repository at this point
Copy the full SHA 5b58616View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68a51a8 - Browse repository at this point
Copy the full SHA 68a51a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 190e2f6 - Browse repository at this point
Copy the full SHA 190e2f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 161271e - Browse repository at this point
Copy the full SHA 161271eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 909d5c4 - Browse repository at this point
Copy the full SHA 909d5c4View commit details -
Revert "Remove make build from CI"
This reverts commit 84f7360.
Configuration menu - View commit details
-
Copy full SHA for a37f30e - Browse repository at this point
Copy the full SHA a37f30eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f07220 - Browse repository at this point
Copy the full SHA 0f07220View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc771f4 - Browse repository at this point
Copy the full SHA bc771f4View commit details
Commits on Jun 1, 2024
-
Add cs_buffer. Breaking API change.
Remove cs_malloc() and cs_free(). API change unifies disassembly process. Before, there were two separate functions to disassemble one instruction at a time in a loop and many instructions into a dynamic buffer. Commit will introduce user allocatable buffer that can be used in both situations with one function. cs_disasm_iter() is a tiny wrapper around cs_disasm(). Updating the use of cs_disasm_iter(): // old api cs_insn *insn = cs_malloc(handle); while (cs_disasm_iter(handle, &code, &code_size, &ip, insn)) { disassembled_instructions += 1; } cs_free(insn); Must be changed to: // new api cs_buffer *buffer = cs_buffer_new(1); // create buffer with 1 element while (cs_disasm_iter(handle, &code, &code_size, &ip, buffer)) { cs_insn *insn = &buffer->insn[0]; // get first insn in a buffer disassembled_instructions += 1; } cs_buffer_free(buffer); // free buffer Updating the use of cs_disasm() is straightforward, just use cs_buffer_new(0) to create a buffer and pass it to cs_disasm().
Configuration menu - View commit details
-
Copy full SHA for 8563211 - Browse repository at this point
Copy the full SHA 8563211View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.