No NULL check after zalloc in agl-compositor

Description

There's no NULL check in zalloc .

In function add_xdg_output_v1_info of clients/screenshooter.c file.

The pointer xdg_output of the memory is alloced by zalloc.

Should make a NULL check before use it.

Environment

None

Activity

Show:

Walt Miner 
January 4, 2022 at 3:49 PM

Close for Marlin 13.0.0 M1

Zhou Mingying 
December 13, 2021 at 5:17 AM

there are similar issues in function ivi_enable_remote_outputs and ivi_enable_waltham_outputs of compositor.c file

 

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Hardware Platform(s) Affected

Raspberry Pi 4

Time tracking

1d 4h logged

Priority

Created December 13, 2021 at 3:40 AM
Updated January 4, 2022 at 3:49 PM
Resolved December 23, 2021 at 5:55 AM

Flag notifications