[Tile-serving] [openstreetmap/mod_tile] mod_tile: reject throttling rates that crash Apache children (PR #509)
Steve Karmeinsky
notifications at github.com
Fri Oct 9 00:41:28 UTC 2026
`ModTileThrottlingTiles` / `ModTileThrottlingRenders` turn their top-up rate into whole microseconds per tile (`APR_USEC_PER_SEC / rate`), which is then used as a **divisor on every throttled request**. A rate of 0 gives infinity (undefined when converted to `long`), and any rate above 1000000/s truncates to 0, so every request crashed the Apache child with SIGFPE.
Such rates are now rejected when the config is loaded. Four new `bad_httpd_config` tests cover both directives; they fail against the current code.
Independent of the other PRs in this series; it applies to `master` on its own and merges cleanly with each of them in any order.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01YForD7qSL9LT6FhMuAoKPV
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/mod_tile/pull/509
-- Commit Summary --
* mod_tile: reject throttling top-up rates that crash Apache children
-- File Changes --
M src/mod_tile.c (16)
M tests/CMakeLists.txt (8)
-- Patch Links --
https://github.com/openstreetmap/mod_tile/pull/509.patch
https://github.com/openstreetmap/mod_tile/pull/509.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/509
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/mod_tile/pull/509 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20261008/f7593b4c/attachment.htm>
More information about the Tile-serving
mailing list