Summary: | sys-block/open-iscsi-2.1.1 : iscsi_util.c: error: format %lu expects argument of type long unsigned int, but argument 3 has type r | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo musl team <musl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, stylinae |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 sys-block:open-iscsi-2.1.1:20200404-062400.log temp.tbz2 Bug that fixes a format string size problem |
Description
Toralf Förster
2020-04-04 07:35:35 UTC
Created attachment 629746 [details]
emerge-info.txt
Created attachment 629748 [details]
emerge-history.txt
Created attachment 629750 [details]
environment
Created attachment 629752 [details]
etc.portage.tbz2
Created attachment 629754 [details]
logs.tbz2
Created attachment 629756 [details]
sys-block:open-iscsi-2.1.1:20200404-062400.log
Created attachment 629758 [details]
temp.tbz2
Created attachment 632296 [details, diff]
Bug that fixes a format string size problem
This fixed a different but related error that I believe FORTIFY_SOURCE caught with snprintf. The string being written to was calloc'd to support the colon, a NULL, the original address string, and an unsigned short (as supported by the sockets API). The format string instead uses a %d. I've attached this patch which fixes the compilation for me.
|