From: Jon Trulson Date: Fri, 26 Dec 2014 21:14:32 +0000 (-0700) Subject: dtappbuilder: Coverity (memory corruption) X-Git-Tag: 2.2.3~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e7ab683000af6ea33b85f29b5aab046836ded28;p=oweals%2Fcde.git dtappbuilder: Coverity (memory corruption) --- diff --git a/cde/programs/dtappbuilder/src/ab/ui_util.c b/cde/programs/dtappbuilder/src/ab/ui_util.c index 9203d8ab..9c5bbf16 100644 --- a/cde/programs/dtappbuilder/src/ab/ui_util.c +++ b/cde/programs/dtappbuilder/src/ab/ui_util.c @@ -1121,7 +1121,8 @@ sync_timeout_proc( event.xclient.window = window; event.xclient.message_type = 0; event.xclient.format = 32; - for (i = 0; i < 8; ++i) + /* data.l[] can hold only 5 longs */ + for (i = 0; i < 5; ++i) { event.xclient.data.l[i] = sync_notify_value; }