Re: [PATCH] gtk: Skip drawing if console surface is NULL

2025-07-14 Thread Akihiko Odaki
On 2025/07/14 23:17, Weifeng Liu wrote: In gtk draw/render callbacks, add an early NULL check for the console surface and skip drawing if it's NULL. Otherwise, attempting to fetch its width and height crash. This change fixes Coverity CID 1610328. In practice, this case wouldn't happen at all be

Re: [PATCH] gtk: Skip drawing if console surface is NULL

2025-07-14 Thread Marc-André Lureau
On Mon, Jul 14, 2025 at 6:18 PM Weifeng Liu wrote: > > In gtk draw/render callbacks, add an early NULL check for the console > surface and skip drawing if it's NULL. Otherwise, attempting to fetch > its width and height crash. This change fixes Coverity CID 1610328. > > In practice, this case woul

[PATCH] gtk: Skip drawing if console surface is NULL

2025-07-14 Thread Weifeng Liu
In gtk draw/render callbacks, add an early NULL check for the console surface and skip drawing if it's NULL. Otherwise, attempting to fetch its width and height crash. This change fixes Coverity CID 1610328. In practice, this case wouldn't happen at all because we always install a placeholder surf