sdm845-common: Fix gsl_memory_alloc_pure ABI mismatch in 32-bit libgsl

- When graphics blobs were updated from pong, gsl_memory_alloc_pure changed
  its calling convention to 64-bit size, causing 32-bit legacy blobs like libC2D2
  to pass mismatched arguments (flags corrupted to memdesc pointer, memdesc null).
- This caused kgsl_sharedmem_alloc to fail and crash vendor.qti.media.c2@1.0-service
  on null pointer dereference during video encoding (e.g. scrcpy, video recording).
- Add trampoline to correctly bridge 32-bit gsl_memory_alloc_pure calls to
  gsl_memory_alloc_pure_64 and add null check on error path in libgsl.

Change-Id: Ic6b835fbf2ffd876789e9b332bc26634e303c0f4
This commit is contained in:
Raya Mahardika committed 2026-10-05 00:33:47 +00:00
1 parent 222fd447bf
commit baca65a148
1 file changed
Binary file not shown.