commit | 874f391dbf13dcc84e13a494daed57539ffe2935 | [log] [tgz] |
---|---|---|
author | Chunbo Hua <chunbo.hua@intel.com> | Thu Aug 15 14:42:19 2024 +0800 |
committer | Frank Barchard <fbarchard@chromium.org> | Wed Aug 21 00:07:37 2024 +0000 |
tree | 39a3db563486c24e6e9fa8413e890d8c62ae5849 | |
parent | e434b8c5ae4a2569f6ccfa1a6975f0f376ceac90 [diff] |
Validate memory right after malloc The failure of malloc would make a NULL pointer. But if in this case, things like reinterpret_cast is done to some shift from the NULL point, it will return a valid pointer although its content would be Access Violation area. Bug: 359949838 Change-Id: Ie73bca426671ee85315b96f187a6de8c955cada6 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/5789885 Reviewed-by: Frank Barchard <fbarchard@chromium.org>
libyuv is an open source project that includes YUV scaling and conversion functionality.
See Getting started for instructions on how to get started developing.
You can also browse the docs directory for more documentation.