History log of /frameworks/av/include/media/nblog/NBLog.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
248f34f11b8942ea711957243c168b913ea90ee6 15-Dec-2017 Ivan Lozano <ivanlozano@google.com> Fix overflow sanitizer in copyWithAuthor.

An array index calculation in NBLog.cpp causes a runtime error on
integer overflow sanitized builds.

buffer[sizeof(buffer) + Entry::kPreviousLengthOffset] = ...

runtime error: unsigned integer overflow: 27 + 4294967295 cannot be
represented in type 'unsigned int'

This changes kPreviousLengthOffset to signed, which provides the same
effect without the overflow.

Bug: 30969751
Test: Compiles, device boots.
Change-Id: I25b232bba6a1940674d15a06483b2595eecc29e8
/frameworks/av/media/libnblog/include/media/nblog/NBLog.h
8589ce7045fd4f5520aabbc773f00c7136925fd7 09-Sep-2017 Glenn Kasten <gkasten@google.com> Split nblog off from nbaio

nbaio is an acronym for "non-blocking audio I/O", and nblog means
"non-blocking logger" so nblog does not belong with nbaio.

There are a lot of improvements planned for nblog, and having the
restructuring done will make it clearer as more files are added.

Test: builds OK
Change-Id: Ib28bada2566c1d64bdbe9f5d7a5ce40e080178ef
/frameworks/av/media/libnblog/include/media/nblog/NBLog.h