git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8b792
)
tools/target_dec_fuzzer: Fix misaligned read
author
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 24 Feb 2017 12:23:37 +0000
(13:23 +0100)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Fri, 24 Feb 2017 13:12:13 +0000
(14:12 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tools/target_dec_fuzzer.c
patch
|
blob
|
history
diff --git
a/tools/target_dec_fuzzer.c
b/tools/target_dec_fuzzer.c
index
8761d96
..
cb3bc50
100644
(file)
--- a/
tools/target_dec_fuzzer.c
+++ b/
tools/target_dec_fuzzer.c
@@
-46,6
+46,7
@@
*/
#include "libavutil/avassert.h"
+#include "libavutil/intreadwrite.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
@@
-165,7
+166,7
@@
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
while (data < end && it < maxiteration) {
// Search for the TAG
while (data + sizeof(fuzz_tag) < end) {
- if (data[0] == (fuzz_tag & 0xFF) &&
*(const uint64_t *)
(data) == fuzz_tag)
+ if (data[0] == (fuzz_tag & 0xFF) &&
AV_RN64
(data) == fuzz_tag)
break;
data++;
}