shm: Log a warning if a shm buffer address is requested when it may be invalid
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 9 Feb 2016 22:29:49 +0000 (16:29 -0600)
committerBryce Harrington <bryce@osg.samsung.com>
Wed, 9 Mar 2016 00:55:02 +0000 (16:55 -0800)
commit1d6e885b1dd7e481c7975f6641632ef107163482
treebfb488df2ede1273f274c4d62db191942e96b3ef
parented5f5030cae66576b081f261afb6233ec634f287
shm: Log a warning if a shm buffer address is requested when it may be invalid

If wl_shm_buffer_get_data() is called on a shm pool that has an external
reference and a pending resize, then the buffer may be outside the pool's
current mapping.

Log a warning if this happens.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
src/wayland-shm.c