[[spice] 1/9] server: Don't dump the bitmap when the format is invalid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Caught by covscan:
spice/server/spice_bitmap_utils.c:54: var_decl: Declaring variable "n_pixel_bits" without initializer.
spice/server/spice_bitmap_utils.c:106: uninit_use: Using uninitialized value "n_pixel_bits".
---
 server/spice_bitmap_utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/spice_bitmap_utils.c b/server/spice_bitmap_utils.c
index 7b370a0..aa7d71b 100644
--- a/server/spice_bitmap_utils.c
+++ b/server/spice_bitmap_utils.c
@@ -95,6 +95,7 @@ void dump_bitmap(SpiceBitmap *bitmap)
         break;
     default:
         spice_error("invalid bitmap format  %u", bitmap->format);
+        return;
     }
 
     if (!rgb) {
-- 
1.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]