[mapserver-commits] [MapServer/MapServer] 548180: [Backport branch-8-6] mapcontext: fix out-of-bound...

github-actions[bot] noreply at github.com
Sun Sep 6 09:58:35 PDT 2026


  Branch: refs/heads/branch-8-6
  Home:   https://github.com/MapServer/MapServer
  Commit: 548180af3063ceaa74004e8394c82772d5fa7c2a
      https://github.com/MapServer/MapServer/commit/548180af3063ceaa74004e8394c82772d5fa7c2a
  Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  Date:   2026-09-06 (Sun, 06 Sep 2026)

  Changed paths:
    A msautotest/wxs/expected/ows_context_bad_srs_caps.xml
    M msautotest/wxs/ows_context.map
    A msautotest/wxs/ows_context_bad_srs.xml
    M src/mapcontext.c

  Log Message:
  -----------
  [Backport branch-8-6] mapcontext: fix out-of-bounds read on short BoundingBox SRS (#7644)

* mapcontext: fix out-of-bounds read on short BoundingBox SRS

The General.BoundingBox.SRS value from a Web Map Context document was
only checked against the "AUTO:" prefix before stripping 5 bytes with
pszValue + 5, so an SRS shorter than the assumed "EPSG:" prefix read
past the end of the value. Strip only when the value starts with
"EPSG:", otherwise pass it through unchanged.

* update formatting

---------

Co-authored-by: Naveed <naveed at bugqore.com>
Co-authored-by: Jeff McKenna <jmckenna at gatewaygeomatics.com>



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