gdal: add patch for buffer overflow in netCDF driver

Closes #525297
This commit is contained in:
Ivan Mincik
2026-07-20 09:45:40 +02:00
parent 5619fdd19f
commit 6bc479868e

View File

@@ -116,6 +116,14 @@ stdenv.mkDerivation (finalAttrs: {
url = "https://github.com/OSGeo/gdal/commit/7b8b8de28bbd200b0fd3b09147fdc68b5bf5ce20.patch";
hash = "sha256-BxWMpiUwM3h7Vo9vxJ4H4A8aQfE3jcSRfRYwaLw/60w=";
})
# Fix stack buffer overflow in netCDF driver
# https://github.com/OSGeo/gdal/issues/14594
(fetchpatch {
name = "0005-netcdf-avoid-reading-attributes-without-checking-length.patch";
url = "https://github.com/OSGeo/gdal/commit/50eea7456d83c9586f112ef96b43249372839dea.patch";
hash = "sha256-m1FsBC37h2uuaEeYezPZJFsDR6Ix/FDIZnuZZiSAYcw=";
})
];
nativeBuildInputs = [