View Issue Details

IDProjectCategoryView StatusLast Update
0000119fileGeneralpublic2019-11-09 00:36
Reporteratrosinenko Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version5.37 
Fixed in Version5.38 
Summary0000119: UBSan: funcs.c:576:9: runtime error: null pointer passed as argument 1, which is declared to never be null
DescriptionMemset is called with the `NULL` pointer.
Steps To Reproduce1. 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
```
TagsNo tags attached.

Activities

atrosinenko

2019-11-03 06:22

reporter  

christos

2019-11-09 00:36

manager   ~0003331

Fixed, thanks!

Issue History

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