Esme Povirk (@madewokherd) commented about dlls/gdiplus/tests/graphics.c:
- status = GdipCreateBitmapFromGdiDib((BITMAPINFO*)&bmihdr, buff, &bm);
- expect(Ok, status);
- ok(NULL != bm, "Expected bitmap to be initialized\n");
- status = GdipCreateFromHDC(hdc, &graphics);
- expect(Ok, status);
- status = GdipCreateMatrix2(2.0, 0.0, 0.0, 1.0, 10.0, 20.0, &transform);
- expect(Ok, status);
- /* DrawImageFX with source rectangle */
- status = GdipDrawImageFX(graphics, NULL, &source, NULL, NULL, NULL, UnitPixel);
- todo_wine
- expect(InvalidParameter, status);
- /* DrawImageFX with source bitmap */
- status = GdipDrawImageFX(graphics, (GpImage*)bm, NULL, NULL, NULL, NULL, UnitPixel);
This is going to use the contents of `buff` uninitialized.