Loading media/libmedia/IOMX.cpp +28 −24 Original line number Diff line number Diff line Loading @@ -775,7 +775,10 @@ status_t BnOMX::onTransact( // mark the last page as inaccessible, to avoid exploitation // of codecs that access past the end of the allocation because // they didn't check the size mprotect((char*)params + allocSize - pageSize, pageSize, PROT_NONE); if (mprotect((char*)params + allocSize - pageSize, pageSize, PROT_NONE) != 0) { ALOGE("mprotect failed: %s", strerror(errno)); } else { switch (code) { case GET_PARAMETER: err = getParameter(node, index, params, size); Loading Loading @@ -803,6 +806,7 @@ status_t BnOMX::onTransact( } } } } } else { ALOGE("couldn't map: %s", strerror(errno)); } Loading Loading
media/libmedia/IOMX.cpp +28 −24 Original line number Diff line number Diff line Loading @@ -775,7 +775,10 @@ status_t BnOMX::onTransact( // mark the last page as inaccessible, to avoid exploitation // of codecs that access past the end of the allocation because // they didn't check the size mprotect((char*)params + allocSize - pageSize, pageSize, PROT_NONE); if (mprotect((char*)params + allocSize - pageSize, pageSize, PROT_NONE) != 0) { ALOGE("mprotect failed: %s", strerror(errno)); } else { switch (code) { case GET_PARAMETER: err = getParameter(node, index, params, size); Loading Loading @@ -803,6 +806,7 @@ status_t BnOMX::onTransact( } } } } } else { ALOGE("couldn't map: %s", strerror(errno)); } Loading