mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 814329 Protect fim_process_event from NULL input r=jesup
This commit is contained in:
parent
6b00e891cd
commit
ecd3a4e29c
@ -2,6 +2,7 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "mozilla/Assertions.h"
|
||||
#include "cpr_types.h"
|
||||
#include "cpr_stdlib.h"
|
||||
#include "cpr_stdio.h"
|
||||
@ -593,11 +594,19 @@ fim_process_event (void *data, boolean cac_passed)
|
||||
* Skip the head.
|
||||
*/
|
||||
icb = call_chn->next_icb;
|
||||
while (done != TRUE) {
|
||||
MOZ_ASSERT(icb);
|
||||
while (icb && !done) {
|
||||
/*
|
||||
* Set the required event data so the entity can process the event.
|
||||
*/
|
||||
cb_hdr = (fim_cb_hdr_t *) (icb->cb);
|
||||
|
||||
MOZ_ASSERT(cb_hdr);
|
||||
if (!cb_hdr) {
|
||||
done = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
event.data = cb_hdr;
|
||||
event.state = cb_hdr->state;
|
||||
event.event = event_id;
|
||||
|
Loading…
Reference in New Issue
Block a user