aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libdisasm/sizeofvoid.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdisasm/sizeofvoid.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libdisasm/sizeofvoid.patch')
-rw-r--r--vcpkg/ports/libdisasm/sizeofvoid.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/libdisasm/sizeofvoid.patch b/vcpkg/ports/libdisasm/sizeofvoid.patch
new file mode 100644
index 0000000..1e4e008
--- /dev/null
+++ b/vcpkg/ports/libdisasm/sizeofvoid.patch
@@ -0,0 +1,27 @@
+--- a/libdisasm/x86_disasm.c
++++ b/libdisasm/x86_disasm.c
+@@ -35,7 +35,7 @@ unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len,
+
+ if ( offset >= buf_len ) {
+ /* another caller screwup ;) */
+- x86_report_error(report_disasm_bounds, (void*)(long)buf_rva+offset);
++ x86_report_error(report_disasm_bounds, (void*)(long)(buf_rva+offset));
+ return 0;
+ }
+
+@@ -53,13 +53,13 @@ unsigned int x86_disasm( unsigned char *buf, unsigned int buf_len,
+
+ /* check and see if we had an invalid instruction */
+ if (! size ) {
+- x86_report_error(report_invalid_insn, (void*)(long)buf_rva+offset );
++ x86_report_error(report_invalid_insn, (void*)(long)(buf_rva+offset));
+ return 0;
+ }
+
+ /* check if we overran the end of the buffer */
+ if ( size > len ) {
+- x86_report_error( report_insn_bounds, (void*)(long)buf_rva + offset );
++ x86_report_error( report_insn_bounds, (void*)(long)(buf_rva + offset));
+ MAKE_INVALID( insn, bytes );
+ return 0;
+ }