crash: sprintf(buffer,"no poi") with uninitialized buffer

Bug #341271 reported by Jozef Mlich
2
Affects Status Importance Assigned to Milestone
tangogps
Undecided
Jozef Mlich

Bug Description

The buffer is not initialized id 0.96 and causing crash (it is very obvious when you are using touchscreen)

The patch is self explaining:

--- poi.c (revision 2)
+++ poi.c (working copy)
@@ -718,8 +718,9 @@

  }

- if(!poi_found)
- g_sprintf(buffer, "<b>No POI found</b>\n");
+ if(!poi_found) {
+ buffer = g_strdup_printf("<b>No POI found</b>\n");
+ }

Jozef Mlich (xmlich02)
Changed in tangogps:
status: New → Fix Committed
assignee: nobody → xmlich02
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers