Project

General

Profile

Actions

Bug #7836

open

util-byte: bad usage of StringParse function return codes

Added by Jason Ish 8 days ago. Updated 2 days ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

These functions return 0 or less than 0 on failure, where 0 means no bytes were parsed to a number and can leave the output variable uninitialized.

A compiler warning is emitted with -flto=auto -O2 on this usage.

To reproduce the compiler warnings:

CFLAGS="-flto=auto -O2" LDFLAGS="-flto=auto -O2" ./configure
make


Subtasks 1 (1 open0 closed)

Bug #7837: util-byte: bad usage of StringParse function return codes (7.0.x backport)AssignedJason IshActions
Actions #1

Updated by OISF Ticketbot 8 days ago

  • Subtask #7837 added
Actions #2

Updated by OISF Ticketbot 8 days ago

  • Label deleted (Needs backport to 7.0)
Actions #4

Updated by Jason Ish 2 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF