```
# CFLAGS=-fsanitize=address,undefined LDFLAGS=-fsanitize=address,undefined meson
setup sanitize
# cd sanitize
# CFLAGS=-fsanitize=address,undefined LDFLAGS=-fsanitize=address,undefined meson
compile
# ./pacman -Syuu
:: Synchronizing package databases...
core downloading...
extra downloading...
:: Starting full system upgrade...
../lib/libalpm/util.c:1149:9: runtime error: null pointer passed as argument 1,
which is declared to never be null
../lib/libalpm/util.c:1151:10: runtime error: null pointer passed as argument 1,
which is declared to never be null
../lib/libalpm/util.c:1192:4: runtime error: null pointer passed as argument 2,
which is declared to never be null
...
:: Proceed with installation? [Y/n] Y
...
```
Original "fix" in 4dc21b965b891042edc951d53f9ce93bf265cdfd results in a segfault on gz repos (#166).
I think the null pointer reads are all to memchr and passed with size zero, so should be "safe"... So reverting the "fix" for the time being.
↧