osquery-1/osquery/events/linux
Teddy Reed 3be0994933 [Fix #1570] Check for invalid apt sources
This fixes a crash identified by @endrazine.
When apt sources data in /etc/apt/sources.list or /etc/apt/sources.list.d/{*}.list contain invalid data/lines the cache_file.GetPkgCache(); call will fail and cache will be nullptr. Subsequent usage results in a SIGSEV.

To reproduce the fault try:

$ zzuf -I /etc/ -r 0.01:0.1 -s 0:1000 -v \
 ./build/trusty/osquery/osqueryi --registry_exceptions=true --verbose \
 "select count(*) from apt_sources"

Signed-off-by: Jonathan Brossard
2015-10-15 15:20:26 -07:00
..
tests Add a Linux audit event publisher 2015-09-03 08:45:02 -07:00
audit.cpp [#1488] Shutdown Linux event publishers responsibly 2015-09-22 23:06:23 -07:00
audit.h Add a Linux audit event publisher 2015-09-03 08:45:02 -07:00
inotify.cpp [Fix #1570] Check for invalid apt sources 2015-10-15 15:20:26 -07:00
inotify.h Optimize event publisher database namespace lookups. 2015-07-19 17:10:42 -07:00
kernel_util.cpp Added loading of kernel. 2015-07-30 14:36:46 -07:00
udev.cpp [#1488] Shutdown Linux event publishers responsibly 2015-09-22 23:06:23 -07:00
udev.h Removing trailing whitespace 2015-05-11 23:31:13 -07:00