Openmoko Bug #1878: infinite recursion in om-locations-map-pack.c

Openmoko Public Trac bugs at docs.openmoko.org
Wed Aug 27 20:12:12 CEST 2008


#1878: infinite recursion in om-locations-map-pack.c
-----------------------+----------------------------------------------------
 Reporter:  xbaldauf   |          Owner:  marek   
     Type:  defect     |         Status:  new     
 Priority:  normal     |      Milestone:  Om2008.8
Component:  Locations  |        Version:  Om2008.8
 Severity:  normal     |       Keywords:          
Blockedby:             |   Reproducible:          
 Blocking:             |  
-----------------------+----------------------------------------------------
 In http://git.openmoko.org/?p=om-locations.git;a=blob;f=tools/om-
 locations-map-pack.c;h=4fefe1181db9450b64ce48c6a9d23b7242d73ca3;hb=HEAD

 function fetch_sched() may call fetch_completion() (in line 351), while
 function fetch_completion() may call fetch_sched() (in line 312).

 This leads to infinite recursion if the "circumstances" are right.

 One of these circumstances is if om-locations-map-pack is run over a
 sufficiently large cache directory (with more than 2000 tiles).

 Thus, this bug prevents incremental downloading of reasonably sized tile
 sets (e.g. a tile set of a larger city).

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/1878>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list