[PATCH wayland v2 0/4] wl_array: documentation and test

Yong Bakos junk at humanoriented.com
Tue Sep 27 18:03:46 UTC 2016


From: Yong Bakos <ybakos at humanoriented.com>

This series adds documentation to wl_array and its methods.

There is one implementation change: defining an invalid pointer address, and
setting the `data` pointer to the invalid pointer address after free, in
wl_array_release. I did not set `size` and `alloc` to 0, in order to
keep the change miniminal. (Should I?)

Regards,
yong

Yong Bakos (4):
  util: Document wl_array
  wl_array: Set data to invalid address after free
  tests: Test wl_array_release
  array-test: Include wayland-util.h and simplify init test

 src/wayland-private.h |  3 +++
 src/wayland-util.c    |  1 +
 src/wayland-util.h    | 75 +++++++++++++++++++++++++++++++++++++++++++++++----
 tests/array-test.c    | 27 +++++++++++--------
 4 files changed, 90 insertions(+), 16 deletions(-)

--
2.7.2



More information about the wayland-devel mailing list