You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bryce Harrington
5c611d933f
terminal: Fix crash due to race condition in init
...
weston-terminal intermittently crashes on startup. This occurs because
some parameters in the weston_terminal structure such as data_pitch,
don't get set to non-zero until the resize_handler() callback gets
triggered. That callback makes a call to terminal_resize_cells(), to
calculate the proper values for these parameters.
On occasion, the resize handler call is slow to resolve, and the program
proceeds to start processing characters for the terminal window. With
the parameters defaulting to zero, certain calculations come out wrong,
leading the program to attempt to scroll the buffer when it shouldn't,
and thus follows the crash.
Instead, force the call to terminal_resize_cells() during the init, with
some dummy defaults, to ensure the parameters are always non-zero.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=97539
Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
9 years ago
..
calibrator.c
Moved helper macro to a discrete include file.
10 years ago
clickdot.c
clients & tests: Unify multiple definitions of x*alloc and related functions
10 years ago
cliptest.c
Rename src/ to libweston/
9 years ago
confine.c
clients/confine: Toggle maximized state with 'm'
9 years ago
desktop-shell.c
config-parser: Add weston_config_section_get_color
9 years ago
dnd.c
clients & tests: Unify multiple definitions of x*alloc and related functions
10 years ago
editor.c
weston-editor: Close the data source after sending
9 years ago
eventdemo.c
include stdint.h for int32_t/uint32_t
9 years ago
flower.c
client: fix spelling mistake
10 years ago
fullscreen.c
clients: Use zalloc
10 years ago
gears.c
clients: Update boilerplate from MIT X11 license to MIT Expat licenses
10 years ago
image.c
cosmetic: Remove a few double semicolons
10 years ago
ivi-shell-user-interface.c
include stdint.h for int32_t/uint32_t
9 years ago
keyboard.c
include stdint.h for int32_t/uint32_t
9 years ago
multi-resource.c
include stdint.h for int32_t/uint32_t
9 years ago
nested-client.c
include stdint.h for int32_t/uint32_t
9 years ago
nested.c
clients/nested: use weston_check_egl_extension over strstr
9 years ago
presentation-shm.c
include stdint.h for int32_t/uint32_t
9 years ago
resizor.c
clients/resizor: Use pointer locking for resizing window
9 years ago
scaler.c
include stdint.h for int32_t/uint32_t
9 years ago
screenshot.c
clients & tests: Unify multiple definitions of x*alloc and related functions
10 years ago
simple-damage.c
clients/simple-damage: Port to xdg_shell unstable v6
9 years ago
simple-dmabuf-intel.c
clients/simple-dmabuf-intel: Port to xdg_shell unstable v6
9 years ago
simple-dmabuf-v4l.c
gl-renderer, simple-dmabuf-v4l: fix dmabuf y-invert
9 years ago
simple-egl.c
clients/simple-egl: Port to xdg_shell unstable v6
9 years ago
simple-shm.c
clients/simple-shm: Port to xdg_shell unstable v6
9 years ago
simple-touch.c
include stdint.h for int32_t/uint32_t
9 years ago
smoke.c
client: fix spelling mistake
10 years ago
stacking.c
include stdint.h for int32_t/uint32_t
9 years ago
subsurfaces.c
clients & tests: Unify multiple definitions of x*alloc and related functions
10 years ago
terminal.c
terminal: Fix crash due to race condition in init
9 years ago
transformed.c
clients: Update boilerplate from MIT X11 license to MIT Expat licenses
10 years ago
weston-info.c
include stdint.h for int32_t/uint32_t
9 years ago
weston-simple-im.c
clients: Use ARRAY_LENGTH macro in weston-simple-im
9 years ago
window.c
toytoolkit: Port to xdg_shell unstable v6
9 years ago
window.h
include stdint.h for int32_t/uint32_t
9 years ago