Review Board 2.0.15


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 (Sept. 11, 2012, 4:10 a.m.)

Status: Closed (submitted)