robherring / gbm_gralloc

Android gralloc module using libgbm API from Mesa
20 stars 42 forks source link

Android CTS 13 dEQP-EGL causing SIGFPE for unhandled HAL pixel formats #34

Open maurossi opened 1 year ago

maurossi commented 1 year ago

gralloc_gbm_get_bpp() can return 0 for unsupported HAL pixel formats and this is causing segfaults with Android CTS 13 dEQP-EGL test runs due to division by zero

Checking bpp value before proceeding in gralloc_gbm_get_bpp() routines fixes the following segfaults observed with HAL Pixel Formats 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x38

maurossi commented 1 year ago

I have submitted PR https://github.com/robherring/gbm_gralloc/pull/32 Please review when possible

Thank you