Fix potential crash in vcalendar's icalcomponent_vanew() on 64-bit archs.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 15 Aug 2016 11:32:41 +0000 (13:32 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 15 Aug 2016 11:32:41 +0000 (13:32 +0200)
commitd20742effa4de1e3a21a4d2b2a0512e7d166f08d
tree1269a635aaa92d43b3932c6ead751fc1f617ccd5
parentdd7568a78b47756ba690be540f8960d5771eac2b
Fix potential crash in vcalendar's icalcomponent_vanew() on 64-bit archs.

We need to pass the terminating zero cast to void*,
because size of void* is 8 bytes, while size of a
literal 0 just 4 bytes. The arguments are retrieved
as void*, so without this void* cast, we're taking
four extra bytes belonging to whatever data is
stored in memory directly after our four-byte zero.
src/plugins/vcalendar/vcal_folder.c
src/plugins/vcalendar/vcal_manager.c
src/plugins/vcalendar/vcal_meeting_gtk.c