diff options
author | James Zern <jzern@google.com> | 2022-05-06 11:55:56 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2022-05-06 11:55:56 -0700 |
commit | cb1abee1455ac7e552da271ac64c71d117caaa77 (patch) | |
tree | 07d42b4887b9a64ba28b4041c72b3f2ca62d99c3 /test | |
parent | f3b4c9a8f65fb8f35d0e77d2fa62bcd075bbd738 (diff) | |
download | libvpx-cb1abee1455ac7e552da271ac64c71d117caaa77.tar libvpx-cb1abee1455ac7e552da271ac64c71d117caaa77.tar.gz libvpx-cb1abee1455ac7e552da271ac64c71d117caaa77.tar.bz2 libvpx-cb1abee1455ac7e552da271ac64c71d117caaa77.zip |
add some missing realloc checks
Change-Id: I0fd1e094085c18b1d9a32333e876c2affeb6de23
Diffstat (limited to 'test')
-rw-r--r-- | test/vp9_ethread_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/vp9_ethread_test.cc b/test/vp9_ethread_test.cc index 21caf7918..238366cb6 100644 --- a/test/vp9_ethread_test.cc +++ b/test/vp9_ethread_test.cc @@ -98,6 +98,7 @@ class VPxFirstPassEncoderThreadTest firstpass_stats_.buf = realloc(firstpass_stats_.buf, firstpass_stats_.sz + pkt_size); + ASSERT_NE(firstpass_stats_.buf, nullptr); memcpy((uint8_t *)firstpass_stats_.buf + firstpass_stats_.sz, pkt_buf, pkt_size); firstpass_stats_.sz += pkt_size; |