summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-05-16 16:52:22 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-05-16 16:52:22 +0000
commit2b13b4735c0683e46459973d8ae67623643b283a (patch)
treee323614996f7b4af10ced77fc7feab0cb5e53092
parent69c5c6ea770b5084c7a9402314434f41f99aabaa (diff)
downloadnavit-2b13b4735c0683e46459973d8ae67623643b283a.tar.gz
Fix:maptool:Increase o5m processing buffer size. Report more info in case we drop item on the floor to prevent overflow.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6092 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rw-r--r--navit/maptool/osm_o5m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/maptool/osm_o5m.c b/navit/maptool/osm_o5m.c
index d418c97c5..e5949000c 100644
--- a/navit/maptool/osm_o5m.c
+++ b/navit/maptool/osm_o5m.c
@@ -8,7 +8,7 @@ static int print;
static char *types[]={"node","way","relation"};
struct o5m {
- unsigned char buffer[65536];
+ unsigned char buffer[65536*2];
int buffer_size;
unsigned char *buffer_start;
unsigned char *buffer_end;
@@ -208,7 +208,7 @@ map_collect_data_osm_o5m(FILE *in, struct maptool_osm *osm)
return 0;
}
if (buffer_end(&o, len)) {
- fprintf(stderr,"unexpected eof or buffer too small\n");
+ fprintf(stderr,"unexpected eof or buffer too small, item type %d, item size %d\n", c, len);
return 0;
}
end=o.buffer_start+len;