Jeff-Lewis / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

Assembly instrumentation: handle more instructions #282

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On X86, almost any instruction can have a memory argument. At the moment we 
instrument only a minority of them.

We could use MCInstrInfo/MCRegisterInfo to guess instruction memory properties.

Original issue reported on code.google.com by euge...@google.com on 24 Mar 2014 at 7:31

GoogleCodeExporter commented 8 years ago
Attached (very hackish) patch almost passes ffmpeg.
- it passes TargetMachine through global var, just because
- mishandles movzbl and, in general, determines memory access size from the 
size of the other argument. It's wrong for a lot of instructions.

I may work on it some more later.

Original comment by euge...@google.com on 24 Mar 2014 at 7:37

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ramosian.glider@gmail.com on 30 Jul 2015 at 9:05

GoogleCodeExporter commented 8 years ago
Adding Project:AddressSanitizer as part of GitHub migration.

Original comment by ramosian.glider@gmail.com on 30 Jul 2015 at 9:06