Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid integer overflow when saving sparse bool matrix in binary format.
* libinterp/octave-value/ov-bool-sparse.cc (octave_sparse_bool_matrix::save_binary): Make sure that the number of non-zero elements, the number of rows, and the number of columns are non-negative, and they can be stored with 4 bytes. (Prompted by a compiler warning with GCC 13.)
- Loading branch information