]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Avoid undefined behavior in stdlib/tst-labs
authorFlorian Weimer <fweimer@redhat.com>
Tue, 16 May 2023 21:26:40 +0000 (23:26 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 17 May 2023 06:23:59 +0000 (08:23 +0200)
commit10a81dd4cf89276f7b1208ed044b93ae846800ce
tree1acf0f6bce2f22ed86780e8df844aa6f80d37592
parent8812b9900e5fba3b696f1b34bd6014211327190f
stdlib: Avoid undefined behavior in stdlib/tst-labs

The last loop could attempt to overflow beyond INT_MAX on 32-bit
architectures.

Also switch to GNU style.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
stdlib/tst-labs.c