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

Also available in: Atom PDF