gnustep / libs-back

The GNUstep gui library is a library of graphical user interface classes written completely in the Objective-C language; the classes are based upon Apple's Cocoa framework (which came from the OpenStep specification). *** Larger patches require copyright assignment to FSF. please file bugs here. ***
http://www.gnustep.org
GNU General Public License v3.0
50 stars 34 forks source link

Avoid AV in Win32FontInfo setupAttributes #43

Closed qmfrederik closed 1 year ago

qmfrederik commented 1 year ago

I've seen [Win32FontInfo setupAttributes] being called when familyName is nil, which will cause a call to wcsncpy with the second argument being NULL, resulting in an AV.

This PR works around that. In this implementation, when familyNameisnil`: