From dc3b79626022e07980be40627b9f2255d58b6e70 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 19 Apr 2012 10:04:04 +0200 Subject: [PATCH] s3: Attempt to fix Coverity ID 2748: INTEGER_OVERFLOW Not sure this will actually please Coverity, but it fixes a severe bug --- source3/lib/msg_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/msg_channel.c b/source3/lib/msg_channel.c index 9a174c0ed65..65976d1170a 100644 --- a/source3/lib/msg_channel.c +++ b/source3/lib/msg_channel.c @@ -300,7 +300,7 @@ static void msg_channel_trigger(struct tevent_context *ev, state->rec = talloc_move(state, &channel->msgs[0]); memmove(channel->msgs, channel->msgs+1, - sizeof(struct messaging_rec) * (num_msgs-1)); + sizeof(struct messaging_rec *) * (num_msgs-1)); channel->msgs = talloc_realloc( channel, channel->msgs, struct messaging_rec *, num_msgs - 1); -- 2.11.4.GIT