Bug 11476 - source4/lib/http/http.c uses non-portable sscanf() spec
source4/lib/http/http.c uses non-portable sscanf() spec
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build
All FreeBSD
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2015-08-31 00:40 UTC by Timur Bakeyev
Modified: 2015-09-02 08:06 UTC (History)
1 user (show)

See Also:

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.