View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000119 | file | General | public | 2019-11-03 06:22 | 2019-11-09 00:36 |
Reporter | atrosinenko | Assigned To | christos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 5.37 | ||||
Fixed in Version | 5.38 | ||||
Summary | 0000119: UBSan: funcs.c:576:9: runtime error: null pointer passed as argument 1, which is declared to never be null | ||||
Description | Memset is called with the `NULL` pointer. | ||||
Steps To Reproduce | 1. Clone the fresh repo, tested on commit 069daf5c 2. autoreconf -i 3. ./configure CC=clang CFLAGS=-fsanitize=undefined --disable-libseccomp 4. make 5. Execute ``` $ ./src/file -m magic/magic.mgc /tmp/file-memset-null.bin funcs.c:576:9: runtime error: null pointer passed as argument 1, which is declared to never be null /usr/include/string.h:60:62: note: nonnull attribute specified here /tmp/file-memset-null.bin: JPEG image data, baseline, precision 0, 0x0, components 0 ``` | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-03 06:22 | atrosinenko | New Issue | |
2019-11-03 06:22 | atrosinenko | File Added: file-memset-null.bin | |
2019-11-09 00:35 | christos | Assigned To | => christos |
2019-11-09 00:35 | christos | Status | new => assigned |
2019-11-09 00:36 | christos | Status | assigned => resolved |
2019-11-09 00:36 | christos | Resolution | open => fixed |
2019-11-09 00:36 | christos | Fixed in Version | => 5.38 |
2019-11-09 00:36 | christos | Note Added: 0003331 |