Changeset 98735eb in mainline for uspace/srv/hid/display/client.h


Ignore:
Timestamp:
2021-06-10T13:22:33Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
90f1f19
Parents:
d7f82635
git-author:
Jiri Svoboda <jiri@…> (2021-06-08 17:55:50)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
Message:

Purge events from client event queue when destroying window

If the client had events queued for a particular window and that got
destroyed, later these events, pointing to freed (and reused) memory
would be handed to the client with the wrong window ID (which was
read from the wrong/recycled memory block).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/client.h

    rd7f82635 r98735eb  
    5353extern errno_t ds_client_get_event(ds_client_t *, ds_window_t **,
    5454    display_wnd_ev_t *);
     55extern void ds_client_purge_window_events(ds_client_t *, ds_window_t *);
    5556extern errno_t ds_client_post_close_event(ds_client_t *, ds_window_t *);
    5657extern errno_t ds_client_post_focus_event(ds_client_t *, ds_window_t *);
Note: See TracChangeset for help on using the changeset viewer.