[Geany-devel] Weird Segfault Crash

Matthew Brush mbrush at xxxxx
Mon Jan 2 05:01:21 UTC 2012


Hi,

I'm having some random crashes, possibly due to bad tag files?  Patch 
attached "fixes" the segfault, but I'm pretty sure it's not the 
"correct" fix.

P.S. I also noticed in this block of code::

     encodings_convert_to_utf8_from_charset(utf8_name, (gsize) -1, ...)

Is it OK the cast a negative number to `gsize` and will it have the 
desired effect for that function? The `-1` here is supposed to tell the 
encoding function that the string is nul terminated and is to be 
measured with `strlen()` IIUC.

Cheers,
Matthew Brush
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symbols-segfault.patch
Type: text/x-diff
Size: 587 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/devel/attachments/20120101/d4da76cb/attachment.patch>


More information about the Devel mailing list