osquery-1/osquery/events
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
..
benchmarks RocksDB usage speedups 2015-08-15 20:43:53 -07:00
darwin [#1488] Stop OS X event publishers with SIGINT 2015-09-21 22:02:27 -07:00
freebsd Added loading of kernel. 2015-07-30 14:36:46 -07:00
kernel Add a Linux audit event publisher 2015-09-03 08:45:02 -07:00
linux [Fix #1570] Check for invalid apt sources 2015-10-15 15:20:26 -07:00
tests [Fix #1374] Allow subscription subclassing 2015-07-26 01:48:27 -07:00
CMakeLists.txt Add a Linux audit event publisher 2015-09-03 08:45:02 -07:00
events.cpp [#1529] Allow DB Readonly with RocksDB lite 2015-09-28 01:50:32 -07:00
kernel.cpp [#1506] Silent kext loading messages from syslog 2015-09-16 13:13:56 -07:00
kernel.h Add a Linux audit event publisher 2015-09-03 08:45:02 -07:00