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

primitive_xml_parsing/osm2pgsql core dump on options #3169

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

primitive_xml_parsing/osm2pgsql core dump on options #3169

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: dachary
[Submitted to the original trac issue database at 9.59am, Monday, 16th August 2010]

Fixed with the patch below:

Index: osm2pgsql.c
===================================================================
--- osm2pgsql.c (revision 22625)
+++ osm2pgsql.c (working copy)
@@ -741,6 +741,7 @
     struct output_options options;
     PGconn *sql_conn;

+    memset(&options, '\0', sizeof(options));
     fprintf(stderr, "osm2pgsql SVN version %s\n\n", VERSION);

     while (1) {
@openstreetmap-trac
Copy link
Author

Author: rodolphe[at]quiedeville.org
[Added to the original trac issue at 10.20pm, Thursday, 19th August 2010]

Patch applid in rev 22701

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