Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Gosmore crashes on some very large id #2215

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 0 comments
Closed

Gosmore crashes on some very large id #2215

openstreetmap-trac opened this issue Jul 23, 2021 · 0 comments

Comments

@openstreetmap-trac
Copy link

Reporter: styno[at]hotmail.com
[Submitted to the original trac issue database at 11.47am, Monday, 24th August 2009]

Gosmore crashes while rebuilding a database using an Eurasia split made with Osmosis. This happens when two elements which contain some id (don't know what) get concatenated using sprintf. One of the id's gets too big and a buffer overflow occurs.

The error occurs on line 1266:
char str[21];
sprintf (str, "%d %d", member[0], member[1]);

The error can be prevented when the str variable is declared with 22 bytes heap space.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant