xml: fix overflow for integer attributes >= 2^31
commit585930b67ff286268809e355b123f019f75e44c4
authorStefan Becker <stefan.becker@nokia.com>
Sat, 27 Mar 2010 21:30:54 +0000 (27 23:30 +0200)
committerStefan Becker <stefan.becker@nokia.com>
Sat, 27 Mar 2010 21:30:54 +0000 (27 23:30 +0200)
tree42a5d4c717dbeb8d820c41a912c836483c84a814
parent9c04de2fcb941178140fc97eea69d24bbc5a15bc
xml: fix overflow for integer attributes >= 2^31

atoi() and friends return rubbish on 32-bit(?) platforms for integers >= 2^31.
Change API to return guint and use g_ascii_strtoull(), which returns a 64-bit
signed integer. That makes sure that integer values with up to 32 bits are
handled correctly.

This is the root cause for the problem addressed in commit

   0e7f5dfe8531b1dfc1397af9e0ea1c5500a1e161
src/core/sipe-utils.c
src/core/sipe-utils.h