Mercurial > octave
view libinterp/octinterp.in.pc @ 30262:f43902a87bf1
gl2ps-print.cc: Avoid integer overflow in multiplication.
* libinterp/corefcn/gl2ps-print.cc (gl2ps_renderer::draw_image,
gl2ps_renderer::draw_pixels): Cast integer size argument of
OCTAVE_LOCAL_BUFFER to size_t before multiplication to avoid integer overflow.
The overflow is very unlikely to happen. But it's an easy fix that doesn't
clutter the code too much.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 31 Oct 2021 12:13:23 +0100 |
parents | 26070f36f1e7 |
children |
line wrap: on
line source
Name: @PACKAGE_NAME@ Description: C++ interface to GNU Octave interpreter. URL: https://www.octave.org Version: @PACKAGE_VERSION@ Requires: octave = @PACKAGE_VERSION@ Requires.private: Libs: -L@octlibdir@ @LIBOCTINTERP@ Libs.private: Cflags: -I@octincludedir@/..