diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-05-25 14:13:47 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-05-25 14:13:47 -0300 |
| commit | e64fcb9d9454d7640a0a171c9e625139c0c436c0 (patch) | |
| tree | e40278a8cdb05070b43abd0a8ae7d7c7caa3af77 | |
| parent | 6c0a9a272e3007ffd3a0da82f74525ee756e5f9c (diff) | |
| download | lua-e64fcb9d9454d7640a0a171c9e625139c0c436c0.tar.gz lua-e64fcb9d9454d7640a0a171c9e625139c0c436c0.tar.bz2 lua-e64fcb9d9454d7640a0a171c9e625139c0c436c0.zip | |
bug: recursive coroutines may overflow C stack
| -rw-r--r-- | bugs | 14 |
1 files changed, 14 insertions, 0 deletions
| @@ -1435,6 +1435,20 @@ lvm.c: | |||
| 1435 | } | 1435 | } |
| 1436 | 1436 | ||
| 1437 | Bug{ | 1437 | Bug{ |
| 1438 | what = [[recursive coroutines may overflow C stack]], | ||
| 1439 | report = [[ , on ]], | ||
| 1440 | since = [[5.0]], | ||
| 1441 | example = [[ | ||
| 1442 | a = function(a) coroutine.wrap(a)(a) end | ||
| 1443 | a(a) | ||
| 1444 | ]], | ||
| 1445 | patch = [[The 'nCcalls' counter should be shared by all threads. | ||
| 1446 | (That is, it should be declared in the 'global_State' structure, | ||
| 1447 | not in 'lua_State'.) | ||
| 1448 | ]], | ||
| 1449 | } | ||
| 1450 | |||
| 1451 | Bug{ | ||
| 1438 | what = [[ ]], | 1452 | what = [[ ]], |
| 1439 | report = [[ , on ]], | 1453 | report = [[ , on ]], |
| 1440 | since = [[i ]], | 1454 | since = [[i ]], |
