|
From: | A.R. Burgers |
Subject: | [Octave-bug-tracker] [bug #55427] save -v7 exits with "error compressing data element" |
Date: | Thu, 1 Jul 2021 16:41:10 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.41 |
Follow-up Comment #13, bug #55427 (project octave): replacing this line uLongf destLen = srcLen * 101 / 100 + 12; with uLongf destLen = double(srcLen) * 101 / 100 + 12; also makes the standalone program work, with this result: srcLen=209715200 destLen=211812364 after compression: destLen=181079622 the srcLen * 101 apparently overflows, as you already diagnosed. Your solution looks fine, good find the compressBound. The -5 error return is Z_BUF_ERROR _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?55427> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |