Ticket #1201 (new defect)

Opened 5 years ago

Last modified 5 years ago

Hover signal segfault

Reported by: guest Owned by: cjacker
Priority: normal Milestone: 0.11.1
Component: Webkit Version: 0.11.0
Keywords: hover maybe string segfault Cc:


hoveringOverLink signal sometimes (when leaving the hover) have NULL pointers for CString and should not be converted as String but as Maybe String as the comment suggest.

Change History

Changed 5 years ago by guest

fixing the gtk2hs-generator tools to recognize a MSTRING is a big change, and as a workaround changing the marshExec for TString to map null CString as empty string permits a safe default (despite slighty wrong).

in callbackGen/HookGenerator.hs:299 marshExec Tstring arg _ body = indent 5. ss " (if " . arg . ss " == nullPtr then return \"\" else ". ss "peekUTFString ". arg. ss " ) " .ss " >>= \\". arg. ss "\' ->".

Note: See TracTickets for help on using tickets.