[PATCH v2 3/4] windowscodecs/tests: Add more tests for DdsFrameDecode_Dds_CopyBlocks() when "boundsInBlocks" is NULL.

Ziqing Hui zhui at codeweavers.com
Mon Jun 8 23:28:41 CDT 2020


The added tests shows that when boundsInBlocks parameter is NULL, stride parameter will be checked to ensure it is bigger or equal to frame stride, but it will be ignored in the call. This can be proved by:

* CopyBlocks(NULL, frame_stride - 1, sizeof(buffer), buffer) return error.
* CopyBlocks(NULL, frame_stride, sizeof(buffer), buffer) and CopyBlocks(NULL, frame_stride * 2, sizeof(buffer), buffer) works fine and result in same buffer content.

Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---
 dlls/windowscodecs/tests/ddsformat.c | 37 ++++++++++++++++++++++------
 1 file changed, 30 insertions(+), 7 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-windowscodecs-tests-Add-more-tests-for-DdsFrameDecod.patch
Type: text/x-patch
Size: 5372 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200609/294bec32/attachment-0001.bin>


More information about the wine-devel mailing list