nikhilgupta10 / GridLAB-D

Other
1 stars 0 forks source link

#626 MACRO parser is hitting buffer overruns with big #ifdef, #2369

Open nikhilgupta10 opened 7 years ago

nikhilgupta10 commented 7 years ago

When running the attached file, which has most of the GLM in an #ifdef structure, a buffer overrun is encountered.

,

nikhilgupta10 commented 7 years ago

nikhilgupta10 imported these comments from Sourceforge: "ftuffner": * attachment _test_37Node_houses_bufferover.glm added

File that exhibits buffer overrun

,

"ftuffner": * cc mhauer removed

Chunking it out into ~500 line #ifdef chunks removes the problem, indicating the \dyanmic\ or olling\ buffer solution that was apparently implemented is not working.

,

"mhauer":The 'rolling buffer' solution is actually working exactly as intended, but the entirety of the #if block is being treated as one block.

,

"mhauer": * status changed from assigned to accepted ,

"jcfuller": * cc dchassin removed

Diff: