osquery-1/osquery
Stefano Bonicatti 4f78848794 Fix undefined-behavior in osquery::ebpf::consumeWrappedMessagesFromCircularBuffer
Issue highlighted by asan activated in PR osquery/osquery#5628

Ensure WrappedMessage has no padding since its members are written
consecutively in the buffer.
Also use memcpy when retrieving a WrappedMessage from a buffer, since
it could be written at a misaligned address.

PR: osquery/osquery#5665
2019-08-16 16:47:18 +02:00
..
carver Fix container-overflow in Carver::carve 2019-08-16 16:47:18 +02:00
config Add CMake support 2019-06-26 21:49:06 -04:00
core Restore ProcessTests test 2019-07-19 22:36:40 +02:00
database Add CMake support 2019-06-26 21:49:06 -04:00
devtools Add CMake support 2019-06-26 21:49:06 -04:00
dispatcher Add CMake support 2019-06-26 21:49:06 -04:00
distributed Add CMake support 2019-06-26 21:49:06 -04:00
ev2 Add CMake support 2019-06-26 21:49:06 -04:00
events Restore WindowsEventLogTests test 2019-07-19 22:36:40 +02:00
examples Replace Status(0) calls with Status::success() to appease Lint (#5487) 2019-03-01 04:29:33 -08:00
experimental Add CMake support 2019-06-26 21:49:06 -04:00
extensions Add CMake support 2019-06-26 21:49:06 -04:00
filesystem Fix stack-use-after-scope in procEnumerateProcesses 2019-08-16 16:47:18 +02:00
hashing Add CMake support 2019-06-26 21:49:06 -04:00
include/osquery Remove dead code for deserializeQueryLogItem functions (#5543) 2019-03-28 14:19:16 -07:00
killswitch Add CMake support 2019-06-26 21:49:06 -04:00
logger Add CMake support 2019-06-26 21:49:06 -04:00
main Add CMake support 2019-06-26 21:49:06 -04:00
numeric_monitoring Add CMake support 2019-06-26 21:49:06 -04:00
process Fix several integer conversions in process_ops 2019-07-09 12:59:45 +02:00
profiler Add CMake support 2019-06-26 21:49:06 -04:00
registry Add CMake support 2019-06-26 21:49:06 -04:00
remote Replacing sync calls by async ones and some cleanup (#5606) 2019-07-16 18:22:30 -07:00
sdk Add CMake support 2019-06-26 21:49:06 -04:00
sql sql function regex_match (and some tests for other sql functions) (#5444) 2019-08-14 11:51:21 -04:00
system Add CMake support 2019-06-26 21:49:06 -04:00
tables Fix undefined-behavior in osquery::tables::getCanonicalEfiDevicePath 2019-08-16 16:47:18 +02:00
utils Fix undefined-behavior in osquery::ebpf::consumeWrappedMessagesFromCircularBuffer 2019-08-16 16:47:18 +02:00
BUCK temp solution for xcode support 2019-02-05 07:20:00 -08:00
CMakeLists.txt Add CMake support 2019-06-26 21:49:06 -04:00
empty.cpp temp solution for xcode support 2019-02-05 07:20:00 -08:00