Skip to content
Commit 95c9a6e8 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

Fix special case for C2x strtol binary constant handling (BZ# 30371)



When the base is 0 or 2 and the first two characters are '0' and 'b',
but the rest are no binary digits.  In this case this is no error,
and strtol must return 0 and ENDPTR points to the 'x' or 'b'.

Checked on x86_64-linux-gnu and i686-linux-gnu.

Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent e0189b25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment