[mapserver-commits] [MapServer/MapServer] b437b1: mapproject.c: check msProjectCreateReprojector() r...
github-actions[bot]
noreply at github.com
Fri Aug 28 08:01:50 PDT 2026
Branch: refs/heads/branch-8-6
Home: https://github.com/MapServer/MapServer
Commit: b437b13a5353d8b3889da03917d32dc85e7b9f8d
https://github.com/MapServer/MapServer/commit/b437b13a5353d8b3889da03917d32dc85e7b9f8d
Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date: 2026-08-28 (Fri, 28 Aug 2026)
Changed paths:
M msautotest/mspython/test_bug_check.py
M src/mapproject.c
Log Message:
-----------
mapproject.c: check msProjectCreateReprojector() result in msProjectRect() (fixes #7613) (#7626)
The "polar stereographic to another projected system" branch passed the
result of msProjectCreateReprojector() straight to msProjectRectAsPolygon(),
which dereferences reprojector->out on its first line. When a transformation
cannot be built the reprojector is NULL and the process segfaults.
The six other calls to msProjectCreateReprojector() in this file all check
the result; this one was the exception.
The same block also leaked the reprojector when neither rect condition
matched, since it is created inside the for (sign ...) loop but destroyed
only on the two return paths. Destroy it before the next iteration.
Adds a msautotest case that reprojects a rectangle enclosing the pole to a
target no transformation can be built for.
Co-authored-by: MarkLee131 <kaixuan.li at ntu.edu.sg>
To unsubscribe from these emails, change your notification settings at https://github.com/MapServer/MapServer/settings/notifications
More information about the MapServer-commits
mailing list