aboutsummaryrefslogtreecommitdiff
path: root/bugs
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-17 15:36:51 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-17 15:36:51 -0200
commit1221e987fe5ffbf2464b6e56301fb09cf6f3bb32 (patch)
tree057c11d1f99e4934ec10584553e70bee5a6778f3 /bugs
parent063d4e4543088e7a21965bda8ee5a0f952a9029e (diff)
downloadlua-1221e987fe5ffbf2464b6e56301fb09cf6f3bb32.tar.gz
lua-1221e987fe5ffbf2464b6e56301fb09cf6f3bb32.tar.bz2
lua-1221e987fe5ffbf2464b6e56301fb09cf6f3bb32.zip
Bug: Long brackets with a huge number of '=' causes overflow
A long bracket with too many equal signs can overflow the 'int' used for the counting and some arithmetic done on the value. Changing the counter to 'size_t' avoids that. (Because what is counted goes to a buffer, an overflow in the counter will first raise a buffer-overflow error.)
Diffstat (limited to 'bugs')
0 files changed, 0 insertions, 0 deletions