Fix Coverity CID 712343: Wrong sizeof argument.
authorChris Maynard <Christopher.Maynard@GTECH.COM>
Mon, 30 Jul 2012 13:38:51 +0000 (13:38 -0000)
committerChris Maynard <Christopher.Maynard@GTECH.COM>
Mon, 30 Jul 2012 13:38:51 +0000 (13:38 -0000)
svn path=/trunk/; revision=44136

asn1/rrc/rrc.cnf
epan/dissectors/packet-rrc.c

index f382b50f6353f932becf36f42693636c8f09d3cb..579bef2890b3bab31d3fdc68c34620a0af1bb99c 100644 (file)
@@ -683,7 +683,7 @@ HNBName TYPE=FT_STRING DISPLAY=BASE_NONE
                        /*If it doesnt exists, insert it*/
                        if( (cur_val=g_tree_lookup(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr))) == NULL ){
                                
-                               flowd_p = (guint*)g_malloc0(sizeof(gint*));  
+                               flowd_p = (guint*)g_malloc0(sizeof(gint));  
                                *flowd_p = (1<<flowd);  /*Set the bit to mark it as true*/
                                g_tree_insert(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr), flowd_p);
                        
index 4dea75bf06f013def6d833ba6a264096cfe6f479..5e412925eda4eab66a2a8a0fef9d42939eca4f0a 100644 (file)
@@ -38378,7 +38378,7 @@ dissect_rrc_DL_TransportChannelType_r5(tvbuff_t *tvb _U_, int offset _U_, asn1_c
                        /*If it doesnt exists, insert it*/
                        if( (cur_val=g_tree_lookup(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr))) == NULL ){
                                
-                               flowd_p = (guint*)g_malloc0(sizeof(gint*));  
+                               flowd_p = (guint*)g_malloc0(sizeof(gint));  
                                *flowd_p = (1<<flowd);  /*Set the bit to mark it as true*/
                                g_tree_insert(hsdsch_muxed_flows, GINT_TO_POINTER((gint)hr), flowd_p);