[Date Prev][Date Next]
Re: (ITS#5324) Access violation on Windows due to %n in format strings
> > In libraries/libldap/url.c, function ldap_url_desc2str, there are a
> couple of
>> sprintfs that use %n in their format strings to return position information.
>> The latest Windows SDKs have heavily deprecated %n and its use now results in an
>> unfortunate access violation and process crash.
> ldap_url_desc2str calls desc2str, which is where the sprintfs are.
> There's actually only one in an if/else in that function.
> This is the same for the latest 2.3 libldap and 2.4 libldap
> but this doesn't really answer your question.
Already fixed in HEAD.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/