mirror of
https://github.com/openharmony/graphic_graphic_surface.git
synced 2026-08-24 21:51:35 -04:00
dce76cc033
按模块确认口径,ReadBufferHandle 校验收敛为:fd 存在时 size 不得超过 lseek(SEEK_END) 取得的 fd 真实长度,封死伪造 size 越读 DMA-BUF。不再对 width/height/stride/format 施加静态约束,避免真实设备多格式/子区域判假。注:按明确选择未保留 size>0 正数约束,size 合法性由调用方/下游保证。 Co-Authored-By: Agent Signed-off-by: fangxiang <fangxiang19@huawei.com> Change-Id: I01b7de8c00f4d5556ebc5daaa1b8167ea42b36b1