Check bit-per-pixel when the pixel format assign from the command line.
It must <= 32 bits.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@265 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/rfbplayer.cxx b/rfbplayer/rfbplayer.cxx
index 4c3cf3f..da47999 100644
--- a/rfbplayer/rfbplayer.cxx
+++ b/rfbplayer/rfbplayer.cxx
@@ -1288,7 +1288,7 @@
         }
         pf++;
       }
-      if ((r < 0) || (g < 0) || (b < 0)) return false;
+      if ((r < 0) || (g < 0) || (b < 0) || (r + g + b > 32)) return false;
       if (strcasecmp(rgb_order, "rgb") == 0) { order = RGB_ORDER; }
       else if (strcasecmp(rgb_order, "rbg") == 0) { order = RBG_ORDER; }
       else if (strcasecmp(rgb_order, "grb") == 0) { order = GRB_ORDER; }