commit | a74b911bd9f20670ead92973bcacab4ef8fa3b79 | [log] [tgz] |
---|---|---|
author | Karel Zak <kzak@redhat.com> | Wed May 15 15:45:19 2024 +0200 |
committer | Karel Zak <kzak@redhat.com> | Mon May 27 15:09:27 2024 +0200 |
tree | 084b0e1c4d3d1b1052e0414c29532e31d3422886 | |
parent | 9ba8eb5d89f0ebba8b3a542c041a5838e10a0d75 [diff] |
libsmartcols: fix reduction stages use There is no proper check for the number of reduction stages, so in some cases, the code can loop indefinitely. The patch also fixes 'rc' variable shadowing. Fixes: https://github.com/util-linux/util-linux/issues/3046 Signed-off-by: Karel Zak <kzak@redhat.com> (cherry picked from commit 8a01276a3c5bc09dce342e087019c704d8c56a32)