Fix wrong dereferencing.
Reported by Pierre Muller | August 9th, 2011 @ 10:31 AM | in 1.2.0 (closed)
Compiling for mingw64 using "-Wall -Werror"
I found the following mistake, which generates a warning:
$ cat fix-cast-warning.patch diff --git
a/modules/objfmts/coff/win64-except.c
b/modules/objfmts/coff/win64-except.c
index 32ef919..71d6228 100644
--- a/modules/objfmts/coff/win64-except.c +++
b/modules/objfmts/coff/win64-except.c @@ -296,7 +296,7 @@
win64_uwinfo_bc_tobytes(yasm_bytecode *bc, unsigned char **b
ufp,
YASM_WRITE_8(buf, 1);
/* Size of prolog */
- output_value(&info->prolog_size, buf, 1, (unsigned long)(buf-*bufstart),
- output_value(&info->prolog_size, buf, 1, (unsigned
long)(buf-bufstart),
bc, 1, d);buf += 1;
The '*' seems to be just an error, no?
Could this patch be applied?
Thanks in advance,
Pierre Muller
thanks in
Comments and changes to this ticket
-

Peter Johnson August 19th, 2011 @ 05:22 PM
- → State changed from new to resolved
(from [d8d1a5ad902b58ed9b506d1bc65416e6b5f805db]) win64-except.c: Fix incorrect dereference.
Reported by: Pierre Muller
[#236 state:resolved] https://github.com/yasm/yasm/commit/d8d1a5ad902b58ed9b506d1bc65416e...
-

Peter Johnson August 27th, 2011 @ 05:03 PM
- → Assigned user set to Peter Johnson
- → Milestone set to 1.2.0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Yasm Modular Assembler Project