[GRASS-git] [OSGeo/grass] e8ef99: Fix some code scanning CodeQL overflow warnings (#...
Nicklas Larsson
noreply at github.com
Mon Feb 14 01:03:04 PST 2022
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: e8ef99668c21b502ce295408b5e8f52e42c63a34
https://github.com/OSGeo/grass/commit/e8ef99668c21b502ce295408b5e8f52e42c63a34
Author: Nicklas Larsson <n_larsson at yahoo.com>
Date: 2022-02-14 (Mon, 14 Feb 2022)
Changed paths:
M lib/ogsf/gs3.c
M raster3d/r3.in.v5d/v5d.c
M raster3d/r3.out.v5d/v5d.c
Log Message:
-----------
Fix some code scanning CodeQL overflow warnings (#2168)
* Fix some code scanning CodeQL overflow warnings
- Multiplication result may overflow 'int' before it is converted to 'long'.
- Multiplication result may overflow 'int' before it is converted to 'unsigned long'.
Use size_t instead of long for pointer arithmetics.
More information about the grass-commit
mailing list