]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(read_utmp): Don't assume that the number of users is less than INT_MAX.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 20:55:14 +0000 (20:55 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 20:55:14 +0000 (20:55 +0000)
commit838af3f6180712c6c80eefe5d7d415da118d8d67
tree37a82b0408b0f6fbcd2aed9b5631b66f1a851d99
parent6517d85e0593fb8db6896a366c8e759909867b28
(read_utmp): Don't assume that the number of users is less than INT_MAX.
Check for integer overflow in size calculations.
Return -1 (not 1) on failure, since we set errno in that case.
lib/readutmp.c