https://bugzilla.novell.com/show_bug.cgi?id=231137 dcb314@hotmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | ------- Comment #6 from dcb314@hotmail.com 2007-01-11 05:15 MST ------- (In reply to comment #5)
The FLOCALE_FFT_FALLBACK_FONT is static string which is represented AFAIK as static pointer in the heap.
Nearly - static strings are stored in the bss section, not the heap.
And they want to compare if the pointer fn is not pointing on the same place as that static pointer. They don't care what string is there.
This assumes that identical text strings point to the same place. This is undefined in ISO C.
In some way th fn could be initialized to string "MonoSpace" and will not pointing to FLOCALE_FFT_FALLBACK_FONT. So in this case the patched comparision would give false positive result.
I fail to understand how - if fn is pointing at string "MonoSpace", then the result of the strcmp will be non zero. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.