<p></p>
<p dir="auto">C isn't exactly my back alley, but that is a buffer overrun isn't it?</p>
<p dir="auto"><a href="https://github.com/openstreetmap/mod_tile/blob/9d34dd80444b204ef595e40e14ca4c64024d5dee/src/cache_expire.c#L117-L118">https://github.com/openstreetmap/mod_tile/blob/9d34dd80444b204ef595e40e14ca4c64024d5dee/src/cache_expire.c#L117-L118</a></p>
<p dir="auto">It is called here: <a href="https://github.com/openstreetmap/mod_tile/blob/master/src/metatile.cpp#L139">https://github.com/openstreetmap/mod_tile/blob/master/src/metatile.cpp#L139</a><br>
Which in turn is called here: <a href="https://github.com/openstreetmap/mod_tile/blob/f28cda992077c38684628cd764742223ab10a3ec/src/gen_tile.cpp#L505">https://github.com/openstreetmap/mod_tile/blob/f28cda992077c38684628cd764742223ab10a3ec/src/gen_tile.cpp#L505</a></p>
<p dir="auto"><a href="https://github.com/openstreetmap/mod_tile/blob/f28cda992077c38684628cd764742223ab10a3ec/src/gen_tile.cpp#L106">https://github.com/openstreetmap/mod_tile/blob/f28cda992077c38684628cd764742223ab10a3ec/src/gen_tile.cpp#L106</a></p>
<p dir="auto">is limited by <code class="notranslate">PATH_MAX</code> which is usually 4096 on Linux and can thereby be > 1024.</p>
<p dir="auto">This is also not checked during parsing: <a href="https://github.com/openstreetmap/mod_tile/blob/9d34dd80444b204ef595e40e14ca4c64024d5dee/src/daemon.c#L862">https://github.com/openstreetmap/mod_tile/blob/9d34dd80444b204ef595e40e14ca4c64024d5dee/src/daemon.c#L862</a></p>
<p dir="auto">Or am I overlooking something?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/mod_tile/issues/276">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353QN363OEPYOCWQQBILVJKNOHANCNFSM5VSKYXLA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AA6353RTKTUAJNQ56ZWXFW3VJKNOHA5CNFSM5VSKYXLKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SLG7WPA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/mod_tile/issues/276</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/mod_tile/issues/276",
"url": "https://github.com/openstreetmap/mod_tile/issues/276",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>