This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Fix Load test.
ClosedPublic

Authored by mpividori on Feb 6 2017, 1:25 PM.

Details

Summary

We should ensure the size of the variable a is 8 bytes. Otherwise, this generates a stack buffer overflow inside the memcpy call in 32 bits machines. (We write more bytes than the size of a, when it is 4 bytes).

Diff Detail

Repository
rL LLVM

Event Timeline

mpividori created this revision.Feb 6 2017, 1:25 PM
kcc accepted this revision.Feb 6 2017, 1:38 PM

LGTM

This revision is now accepted and ready to land.Feb 6 2017, 1:38 PM
This revision was automatically updated to reflect the committed changes.