# HG changeset patch # User Jean-Yves Avenard # Date 1460655260 25200 # Node ID a13c0bc84d6eb132f4199f563fbe228d2d3b3a51 # Parent 88f1eb2c3f4b4b57365ed88223cf8adc2bec4610 Bug 1254721: Ensure consistency between Cenc offsets and sizes table. r=gerald a=sylvestre MozReview-Commit-ID: E1KbKIIBR87 diff --git a/media/libstagefright/frameworks/av/media/libstagefright/SampleTable.cpp b/media/libstagefright/frameworks/av/media/libstagefright/SampleTable.cpp --- a/media/libstagefright/frameworks/av/media/libstagefright/SampleTable.cpp +++ b/media/libstagefright/frameworks/av/media/libstagefright/SampleTable.cpp @@ -612,18 +612,18 @@ status_t SampleTable::parseSampleCencInfo() { if ((!mCencDefaultSize && !mCencInfoCount) || mCencOffsets.isEmpty()) { // We don't have all the cenc information we need yet. Quietly fail and // hope we get the data we need later in the track header. ALOGV("Got half of cenc saio/saiz pair. Deferring parse until we get the other half."); return OK; } - if (!mCencSizes.isEmpty() && mCencOffsets.size() > 1 && - mCencSizes.size() != mCencOffsets.size()) { + if ((mCencOffsets.size() > 1 && mCencOffsets.size() < mCencInfoCount) || + (!mCencDefaultSize && mCencSizes.size() < mCencInfoCount)) { return ERROR_MALFORMED; } if (mCencInfoCount > kMAX_ALLOCATION / sizeof(SampleCencInfo)) { // Avoid future OOM. return ERROR_MALFORMED; } cm?id=23af19f964910548233537f4d6d47789c3abc8ab'>diff
path: root/gnu/build/linux-container.scm
AgeCommit message (Expand)Author
2020-12-06Revert "linux-container: Correct test for unprivileged user namespace support."...This broke 'guix environment --container' on non-Debian distributions. Fixes <https://bugs.gnu.org/45066>. Reported by luhux <luhux@outlook.com>. This reverts commit 8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e. Marius Bakke
2020-12-03linux-container: Correct test for unprivileged user namespace support....Fixes <https://bugs.gnu.org/31977>. Reported by Paul Garlick <pgarlick@tourbillion-technology.com>. * gnu/build/linux-container.scm (unprivileged-user-namespace-supported?): Return #f when the 'userns-file' does not exist. Paul Garlick
2020-10-01linux-container: Reset jailed root permissions....* gnu/build/linux-container.scm (mount-file-systems): Add 'chmod' call. * tests/containers.scm ("call-with-container, mnt namespace, root permissions"): New test. Jelle Licht
2020-09-10build: linux-container: Fix run-container....This is a follow-up of 5316dfc0f125b658e4a2acf7f00f49501663d943. Some users of run-container may expect that the container is jailed, even if there are no mounts. This is the case for some Guix tests. * gnu/build/linux-container.scm (run-container): Do not jail the container when the requested root is "/". Mathieu Othacehe
2020-09-02linux-container: Do not jail the container unconditionally....We may want to run a container inside the MNT namespace, without jailing the container. If RUN-CONTAINER is passed a null MOUNTS list, do not jail the container. * gnu/build/linux-container.scm (run-container): Do not call MOUNT-FILE-SYSTEMS if MOUNTS list is empty. Mathieu Othacehe