`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/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to