diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-27 17:42:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-12-27 17:42:00 -0300 |
commit | e7af9cdf0b9fca080e8bb3463e16d60933e786f9 (patch) | |
tree | c008d59bd636afa37003326287487644b906229f /ldump.c | |
parent | 12b6f610b0f1b4157c04f0db264f1f1d0634709b (diff) | |
download | lua-e7af9cdf0b9fca080e8bb3463e16d60933e786f9.tar.gz lua-e7af9cdf0b9fca080e8bb3463e16d60933e786f9.tar.bz2 lua-e7af9cdf0b9fca080e8bb3463e16d60933e786f9.zip |
Fixed buffers reuse absolute line information
Diffstat (limited to '')
-rw-r--r-- | ldump.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -212,9 +212,10 @@ static void dumpDebug (DumpState *D, const Proto *f) { | |||
212 | dumpVector(D, f->lineinfo, n); | 212 | dumpVector(D, f->lineinfo, n); |
213 | n = (D->strip) ? 0 : f->sizeabslineinfo; | 213 | n = (D->strip) ? 0 : f->sizeabslineinfo; |
214 | dumpInt(D, n); | 214 | dumpInt(D, n); |
215 | for (i = 0; i < n; i++) { | 215 | if (n > 0) { |
216 | dumpInt(D, f->abslineinfo[i].pc); | 216 | /* 'abslineinfo' is an array of structures of int's */ |
217 | dumpInt(D, f->abslineinfo[i].line); | 217 | dumpAlign(D, sizeof(int)); |
218 | dumpVector(D, f->abslineinfo, n); | ||
218 | } | 219 | } |
219 | n = (D->strip) ? 0 : f->sizelocvars; | 220 | n = (D->strip) ? 0 : f->sizelocvars; |
220 | dumpInt(D, n); | 221 | dumpInt(D, n); |