]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod-client.c: Avoid sscanf on mixed-case component of string
authorAaron Merey <amerey@redhat.com>
Thu, 30 Mar 2023 18:11:23 +0000 (14:11 -0400)
committerAaron Merey <amerey@redhat.com>
Thu, 30 Mar 2023 18:11:23 +0000 (14:11 -0400)
commit75800e911b73804cb3354edcc1ba9de3adaefa4e
tree9da1fd95f014a0434b71e8feb81765c63598db27
parent7b97c73bbd30ba9b51fb48e4e9b93ab064c9a7dd
debuginfod-client.c: Avoid sscanf on mixed-case component of string

sscanf is used to get the value of x-debuginfod-size from the http
headers.  The format string used assumes that the header field name
is entirely lower case.  However mixed-case field names are possible,
resulting in the value not being read.

Fix this by removing "x-debuginfod-size" from the format string.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c