chiark / gitweb /
strv: use realloc_multiply() to check for multiplication overflow
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 21 Oct 2014 12:36:03 +0000 (14:36 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Tue, 21 Oct 2014 12:36:03 +0000 (14:36 +0200)
commit14f27b4e3b009d10bb9a3b43b74585c73a7c7626
treef6ef6d41d707c49a6ebd55a1c0289882ee82c9fe
parent97569e154b80541cbad39d78231b7f360d4ff058
strv: use realloc_multiply() to check for multiplication overflow

This could overflow on 32bit, where size_t is the same as unsigned.
src/shared/strv.c