Re: gimp_set_name(xxx, NULL) -> segfault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 20, 1999 at 08:34:00PM +0100, Marc Lehmann wrote:
> The subject says it, this is a cheap way to make gimp crash.
> 
> I tried for about 20 minutes to find the place in pdbgen where to fix
> this, but I was obviously too dumb to fix that myself ;)

Fixed in CVS. It was a oneliner ;) I also added a g_return_if_fail in
gimp_drawable_set_name.

> OTOH, I guess this is a general problem with many functions using strings,
> that do not check for 0 (which is a valid value).

Well, with pdbgen, you have to specifically ask to NOT check. e.g., to fix
this all I did was remove the 'no_success' attribute (which was there in
the first place to preserve 1.0's (buggy) functionality)

-Yosh


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux