Require a length specification for lists in reply structures.
authorEamon Walsh <ewalsh@tycho.nsa.gov>
Mon, 14 Apr 2008 23:24:02 +0000 (19:24 -0400)
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>
Mon, 14 Apr 2008 23:24:02 +0000 (19:24 -0400)
src/glx.xml
src/randr.xml
src/record.xml
src/xfixes.xml
src/xvmc.xml

index ae5c0ac..5fedb7b 100644 (file)
@@ -252,7 +252,9 @@ The patch that fixed this server bug in X.org CVS is here:
                        <field type="CARD32" name="num_visuals" />
                        <field type="CARD32" name="num_properties" />
                         <pad bytes="16" />
-                        <list type="CARD32" name="property_list" />
+                       <list type="CARD32" name="property_list">
+                               <fieldref>length</fieldref>
+                       </list>
                </reply>
        </request>
 
@@ -281,7 +283,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <list type="BYTE" name="data1">
                                <value>24</value>
                        </list>
-                       <list type="BYTE" name="data2" />
+                       <list type="BYTE" name="data2">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -332,7 +339,9 @@ The patch that fixed this server bug in X.org CVS is here:
                                value-mask-name="value_mask"
                                 value-list-name="value_list" />
                             -->
-                        <list type="CARD32" name="property_list" />
+                        <list type="CARD32" name="property_list">
+                               <fieldref>length</fieldref>
+                       </list>
                </reply>
        </request>
 
@@ -552,7 +561,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <reply>
                        <pad bytes="1" />
                        <pad bytes="24" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
                
@@ -583,7 +597,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <reply>
                        <pad bytes="1" />
                        <pad bytes="24" />
-                       <list type="FLOAT64" name="data" />
+                       <list type="FLOAT64" name="data">
+                               <op op="/">
+                                       <fieldref>length</fieldref>
+                                       <value>2</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -803,7 +822,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <reply>
                        <pad bytes="1" />
                        <pad bytes="24" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -916,7 +940,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <field type="INT32" name="height" />
                        <field type="INT32" name="depth" />
                        <pad bytes="4" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
            
@@ -1010,7 +1039,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <pad bytes="1" />
                        <field type="BOOL32" name="ret_val" />
                        <pad bytes="20" />
-                       <list type="BOOL" name="data" />
+                       <list type="BOOL" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -1028,7 +1062,9 @@ The patch that fixed this server bug in X.org CVS is here:
                <reply>
                        <pad bytes="1" />
                        <pad bytes="24" />
-                       <list type="CARD32" name="data" />
+                       <list type="CARD32" name="data">
+                               <fieldref>length</fieldref>
+                       </list>
                </reply>
        </request>
 
@@ -1052,7 +1088,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <pad bytes="8" />
                        <field type="INT32" name="width" />
                        <pad bytes="12" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
        
@@ -1100,7 +1141,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <field type="INT32" name="width" />
                        <field type="INT32" name="height" />
                        <pad bytes="8" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -1149,7 +1195,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <field type="INT32" name="row_w" />
                        <field type="INT32" name="col_h" />
                        <pad bytes="8" />
-                       <list type="BYTE" name="rows_and_cols" />
+                       <list type="BYTE" name="rows_and_cols">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -1165,7 +1216,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <pad bytes="8" />
                        <field type="INT32" name="width" />
                        <pad bytes="12" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -1212,7 +1268,12 @@ The patch that fixed this server bug in X.org CVS is here:
                <reply>
                        <pad bytes="1" />
                        <pad bytes="24" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -1268,7 +1329,12 @@ The patch that fixed this server bug in X.org CVS is here:
                        <pad bytes="8" />
                        <field type="INT32" name="size" />
                        <pad bytes="12" />
-                       <list type="BYTE" name="data" />
+                       <list type="BYTE" name="data">
+                               <op op="*">
+                                       <fieldref>length</fieldref>
+                                       <value>4</value>
+                               </op>
+                       </list>
                </reply>
        </request>
 
@@ -1292,7 +1358,9 @@ The patch that fixed this server bug in X.org CVS is here:
                <reply>
                        <pad bytes="1" />
                        <pad bytes="24" />
-                       <list type="CARD32" name="data" />
+                       <list type="CARD32" name="data">
+                               <fieldref>length</fieldref>
+                       </list>
                </reply>
        </request>
        
index 352b1e1..de552e7 100644 (file)
@@ -284,7 +284,9 @@ authorization from the authors.
                        <field type="BOOL" name="range" />
                        <field type="BOOL" name="immutable" />
                        <pad bytes="21" />
-                       <list type="INT32" name="validValues" />
+                       <list type="INT32" name="validValues">
+                               <fieldref>length</fieldref>
+                       </list>
                </reply>
        </request>
 
index 624d122..74c16fe 100644 (file)
@@ -158,7 +158,12 @@ authorization from the authors.
            <field type="CARD32" name="server_time" />
            <field type="CARD32" name="rec_sequence_num" />
            <pad bytes="8" />
-           <list type="BYTE" name="data" />
+           <list type="BYTE" name="data">
+               <op op="*">
+                   <fieldref>length</fieldref>
+                   <value>4</value>
+               </op>
+           </list>
        </reply>
     </request>
            
index 203c2a8..65b3c30 100644 (file)
@@ -224,7 +224,9 @@ authorization from the authors.
       <pad bytes="1" />
       <field type="RECTANGLE" name="extents" />
       <pad bytes="16" />
-      <list  type="RECTANGLE" name="rectangles" />
+      <list  type="RECTANGLE" name="rectangles">
+               <fieldref>length</fieldref>
+      </list>
     </reply>
   </request>
 
index ecfafea..ac80003 100644 (file)
@@ -78,7 +78,9 @@ authorization from the authors.
             <field type="CARD16" name="height_actual" />
             <field type="CARD32" name="flags_return" />
             <pad bytes="20" />
-            <list type="CARD32" name="priv_data" />
+            <list type="CARD32" name="priv_data">
+               <fieldref>length</fieldref>
+           </list>
         </reply>
     </request>
 
@@ -92,7 +94,9 @@ authorization from the authors.
         <reply>
             <pad bytes="1" />
             <pad bytes="24" />
-            <list type="CARD32" name="priv_data" />
+            <list type="CARD32" name="priv_data">
+               <fieldref>length</fieldref>
+           </list>
         </reply>
     </request>
 
@@ -116,7 +120,9 @@ authorization from the authors.
                 <value>4</value>
             </list>
             <pad bytes="12" />
-            <list type="CARD32" name="priv_data" />
+            <list type="CARD32" name="priv_data">
+               <fieldref>length</fieldref>
+           </list>
         </reply>
     </request>