]> git.ipfire.org Git - thirdparty/coreutils.git/commit
maint: work even if argc == INT_MAX
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Jun 2016 18:16:45 +0000 (20:16 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 23 Jun 2016 18:18:03 +0000 (20:18 +0200)
commit818b2f48974298065a43a8a2d5355e4aaa65c09d
treec33bf70c1f67871a54e954b0bf3cd0c776babaae
parenta3311c966e34f2d9f8aa6b1de31b211124803d02
maint: work even if argc == INT_MAX

GCC 7 warned about undefined behavior in this unlikely case.
Problem reported by Jim Meyering in: http://bugs.gnu.org/23825
* src/md5sum.c (main):
* src/paste.c (main):
* src/yes.c (main):
Avoid undefined behavior when argc == INT_MAX.
src/md5sum.c
src/paste.c
src/yes.c