mem: allow serializing of more than INT_MAX bytes
Review Request #1375 - Created Aug. 28, 2012 and submitted - Latest diff uploaded
| 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.
