projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e1cc0
)
assert() that XCBSendRequest was handed enough space to set opcodes and short length...
author
Jamey Sharp
<jamey@minilop.net>
Fri, 3 Mar 2006 07:31:35 +0000
(23:31 -0800)
committer
Jamey Sharp
<jamey@minilop.net>
Fri, 3 Mar 2006 07:31:35 +0000
(23:31 -0800)
src/xcb_out.c
patch
|
blob
|
history
diff --git
a/src/xcb_out.c
b/src/xcb_out.c
index
054a2ae
..
78ec8ca
100644
(file)
--- a/
src/xcb_out.c
+++ b/
src/xcb_out.c
@@
-87,6
+87,7
@@
int XCBSendRequest(XCBConnection *c, unsigned int *request, int flags, struct io
int i;
CARD16 shortlen = 0;
size_t longlen = 0;
+ assert(vector[0].iov_len >= 4);
/* set the major opcode, and the minor opcode for extensions */
if(req->ext)
{