Bug 11476 - source4/lib/http/http.c uses non-portable sscanf() spec
Summary: source4/lib/http/http.c uses non-portable sscanf() spec
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: 4.2.3
Hardware: All FreeBSD
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-31 00:40 UTC by Timur Bakeyev
Modified: 2015-09-02 08:06 UTC (History)
1 user (show)

See Also:


Attachments
Work around missing %m modifier (2.44 KB, patch)
2015-08-31 00:40 UTC, Timur Bakeyev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur Bakeyev 2015-08-31 00:40:49 UTC
Created attachment 11382 [details]
Work around missing %m modifier

There are two places in source4/lib/http/http.c where '%m[]'(%a[] before) is used to allocate buffer for the scanned substring. Unfortunatelly, at least on FreeBSD (s)scanf() doesn't implement those modifiers.

I attach quick and dirty fix I've implemented to work around this problem, but proper fix is necessary.

Also, DEBUG(11,...) uses values that may not be defined at the point of invocation.