This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix struct size computation in jit interface


The code is careful to take the target-specific alignment into account,
but not before settling on the size of the structure, and copying data
from the inferior.  Thus this code reads uninitialized data on any
target for which padding actually occurs.  This does not include i386,
which is why I assume the bug wasn't noticed before.

Ok?


r~

Attachment: d-gdb-jit
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]