commit | 1c0c4d51b474585d05b36d2d70af6b20f507c931 | [log] [tgz] |
---|---|---|
author | James Zern <jzern@google.com> | Tue Jul 26 19:08:40 2022 -0700 |
committer | James Zern <jzern@google.com> | Wed Jul 27 15:37:06 2022 -0700 |
tree | 22bd4c0957d5c3c910f764bda1d22538192a0f71 | |
parent | 9c09d36ee7ac5304c16bc567f3d370c6f96cc7be [diff] |
y4m_input_fetch_frame: fix ubsan null/zero offset warning reported under clang-13; use a while loop in file_read() to force a size check before attempting to read. buf (aux_buf) may be may be null when no conversion is necessary. y4minput.c:29:43: runtime error: applying zero offset to null pointer Bug: b/229626362 Change-Id: Ia3250d6ff9c325faf48eaa31f4399e20837f8f7b