mem: allow serializing of more than INT_MAX bytes
Review Request #1375 - Created Aug. 28, 2012 and submitted
| Information | |
|---|---|
| Marco Elver | |
| gem5 | |
| Reviewers | |
| Default | |
Despite gzwrite taking an unsigned for length, it returns an int for bytes written; gzwrite fails if (int)len < 0. Because of this, call gzwrite with len no larger than INT_MAX: write in blocks of INT_MAX if data to be written is larger than INT_MAX.
Tested with creating checkpoints.
Review request changed
Updated (Aug. 28, 2012, 3:47 a.m.)
Summary: |
|
|---|
Review request changed
Updated (Aug. 28, 2012, 5:53 a.m.)
Testing Done: |
|
|---|
Hi Marco, Thanks for this. I might clean up some of the spacing between variables and some style things, but I'll get it committed. Ali
