readstat/fuzz_format_spss_commands: Stack-buffer-overflow in readstat_copy_quoted

2019-05-31T10:50:58
ID OSSFUZZ-15050
Type ossfuzz
Reporter Google
Modified 2019-07-11T15:27:34

Description

Project: https://github.com/WizardMac/ReadStat.git

Detailed report: https://oss-fuzz.com/testcase?key=5701415210582016

Project: readstat Fuzzer: libFuzzer_readstat_fuzz_format_spss_commands Fuzz target binary: fuzz_format_spss_commands Job Type: libfuzzer_asan_readstat Platform Id: linux

Crash Type: Stack-buffer-overflow WRITE 1 Crash Address: 0x7fe40ad6fce0 Crash State: readstat_copy_quoted readstat_parse_spss_commands fuzz_format_spss_commands.c

Sanitizer: address (ASAN)

Recommended Security Severity: High

Regressed: https://oss-fuzz.com/revisions?job=libfuzzer_asan_readstat&range=201905290237:201905310242

Reproducer Testcase: https://oss-fuzz.com/download?testcase_id=5701415210582016

Issue filed automatically.

See https://github.com/google/oss-fuzz/blob/master/docs/reproducing.md for instructions to reproduce this bug locally.

This bug is subject to a 90 day disclosure deadline. If 90 days elapse without an upstream patch, then the bug report will automatically become visible to the public.

When you fix this bug, please * mention the fix revision(s). * state whether the bug was a short-lived regression or an old bug in any stable releases. * add any other useful information. This information can help downstream consumers.

If you need to contact the OSS-Fuzz team with a question, concern, or any other feedback, please file an issue at https://github.com/google/oss-fuzz/issues.