A potential problem in libfpx - \0-termination

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
mi
Posts: 123
Joined: 2005-01-25T14:14:43-07:00
Contact:

A potential problem in libfpx - \0-termination

Post by mi »

The original patch is from Andriy Gapon. It is now part of the FreeBSD port graphics/libfpx.

Code: Select all

--- fpx/f_fpxvw.cpp     2005-02-25 21:23:05.000000000 -0500
+++ fpx/f_fpxvw.cpp     2012-01-19 19:44:34.425688599 +0200
@@ -613,6 +613,7 @@ HRESULT OleRegGetUserType(REFCLSID clsid
     const OLECHAR *src=OLESTR("Flashpix Toolkit Application");
     OLECHAR *dest=*pszUserType;
     while(*src) *dest++=*src++;
+    *dest=(OLECHAR)0;

     return S_OK;
 }
Post Reply