diff options
author | Enrico Granata <egranata@apple.com> | 2013-10-29 23:04:29 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-10-29 23:04:29 +0000 |
commit | 0947a6e93b4baaeabf3f1943bc8d8e257ca2bb43 (patch) | |
tree | 5c225170aed12c1dd929e367adc75eb8b52e68a3 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | ce20d460e2a96c05ff8a2d5a6d57d6a6ef5a1cfa (diff) | |
download | llvm-0947a6e93b4baaeabf3f1943bc8d8e257ca2bb43.zip llvm-0947a6e93b4baaeabf3f1943bc8d8e257ca2bb43.tar.gz llvm-0947a6e93b4baaeabf3f1943bc8d8e257ca2bb43.tar.bz2 |
<rdar://problem/15296388>
Fix a crasher that would occur if one tried to read memory as characters of some size != 1, e.g.
x -f c -s 10 buffer
This commit tries to do the right thing and uses the byte-size as the number of elements, unless both are specified and the number of elements is != 1
In this latter case (e.g. x -f c -s 10 -c 3 buffer) one could multiply the two and read 30 characters, but it seems a stretch in mind reading.
llvm-svn: 193659
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions