]> granicus.if.org Git - php/commit
Fix #78878: Buffer underflow in bc_shift_addsub
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 30 Nov 2019 11:26:37 +0000 (12:26 +0100)
committerStanislav Malyshev <stas@php.net>
Mon, 16 Dec 2019 08:05:03 +0000 (00:05 -0800)
commiteb23c6008753b1cdc5359dead3a096dce46c9018
tree2beb2368f539e79b4e1965c3b5d5cddbe7938dae
parentb771a18133bdfd95ce36932e5b83a724f17a1427
Fix #78878: Buffer underflow in bc_shift_addsub

We must not rely on `isdigit()` to detect digits, since we only support
decimal ASCII digits in the following processing.
ext/bcmath/libbcmath/src/str2num.c
ext/bcmath/tests/bug78878.phpt [new file with mode: 0644]