]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix 2 heap-buffer-overflows in trw_layer_download_map_along_track_cb()
authorRoman Lebedev <lebedev.ri@gmail.com>
Fri, 28 Aug 2015 15:44:18 +0000 (18:44 +0300)
committerRob Norris <rw_norris@hotmail.com>
Mon, 31 Aug 2015 22:37:26 +0000 (23:37 +0100)
1 byte is less than sizeof(gpointer), so we do not have enough memory
for last NULL pointer.

This could be solved by braces, but since glib provides g_malloc_n(),
and this kind of bug can be avoided with it, so.

Signed-off-by: Rob Norris <rw_norris@hotmail.com>

No differences found