]> sourceware.org Git - libabigail.git/commit
RHBZ-1944096 - assertion failure during self comparison of systemd
authorDodji Seketeli <dodji@redhat.com>
Tue, 7 Sep 2021 07:42:08 +0000 (09:42 +0200)
committerDodji Seketeli <dodji@redhat.com>
Wed, 8 Sep 2021 14:11:09 +0000 (16:11 +0200)
commit022faf705f7149f822a03a10ff87271b284e1eda
tree29a8b6d02443dd344da487558ccc81612ece3485
parent190350a35f842574cf15b9a98f1ccbc3aa31a840
RHBZ-1944096 - assertion failure during self comparison of systemd

When reading the abixml representing an enumerator which value is
exactly either LLONG_MIN or LLONG_MAX, build_enum_type_decl fails
because we wrongly think that an underflow or overflow happened, while
using strtoll.

This patch fixes the condition used to detect {under,over}flow
whenusing strtoll.

* src/abg-reader.cc (build_enum_type_decl): When strtoll detects
an underflow or overflo, it sets errno to ERANGE.  So take that
into account.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-reader.cc
This page took 0.030378 seconds and 5 git commands to generate.