mirror of https://github.com/rusefi/lua.git
IBM AS400 (OS400) has sizeof(void *)==16, and a `%p' may generate
up to 60 characters in a `printf'. That causes a buffer overflow in `tostring'..
This commit is contained in:
parent
0ff1596476
commit
994a37c8e8
24
bugs
24
bugs
|
@ -489,4 +489,28 @@ patch = [[
|
||||||
---
|
---
|
||||||
> checkSizes(L, deadmem);
|
> checkSizes(L, deadmem);
|
||||||
]]
|
]]
|
||||||
|
}
|
||||||
|
|
||||||
|
Bug{
|
||||||
|
what=[[IBM AS400 (OS400) has sizeof(void *)==16, and a `%p' may generate
|
||||||
|
up to 60 characters in a `printf'. That causes a buffer overflow in
|
||||||
|
`tostring'.]],
|
||||||
|
|
||||||
|
report = [[David Burgess, 25/08/2003]],
|
||||||
|
|
||||||
|
example = [[print{}; (in an AS400 machine)]],
|
||||||
|
|
||||||
|
patch = [[
|
||||||
|
* liolib.c:
|
||||||
|
178c178
|
||||||
|
< char buff[32];
|
||||||
|
---
|
||||||
|
> char buff[128];
|
||||||
|
|
||||||
|
* lbaselib.c:
|
||||||
|
327c327
|
||||||
|
< char buff[64];
|
||||||
|
---
|
||||||
|
> char buff[128];
|
||||||
|
]]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue