projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02e1ffd
)
connection: Fix pointer arithmetic error
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 7 Jun 2011 14:53:27 +0000
(10:53 -0400)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 7 Jun 2011 14:53:27 +0000
(10:53 -0400)
Pointed out by Nicolas Pouillon in irc.
wayland/connection.c
patch
|
blob
|
history
diff --git
a/wayland/connection.c
b/wayland/connection.c
index
259a68c
..
e5893c3
100644
(file)
--- a/
wayland/connection.c
+++ b/
wayland/connection.c
@@
-519,7
+519,7
@@
wl_connection_demarshal(struct wl_connection *connection,
wl_connection_copy(connection, closure->buffer, size);
p = &closure->buffer[2];
- end = (uint32_t *) ((char *)
(p + size)
);
+ end = (uint32_t *) ((char *)
p + size
);
extra = (char *) end;
for (i = 2; i < count; i++) {
if (p + 1 > end) {