Re: [PATCH] cryptodisk: Fix Coverity use after free bug

2022-01-13 Thread Daniel Kiper
On Sat, Jan 01, 2022 at 03:48:25PM -0600, Glenn Washburn wrote: > The Coverity output is: > > *** CID 366905: Memory - illegal accesses (USE_AFTER_FREE) > /grub-core/disk/cryptodisk.c: 1064 in grub_cryptodisk_scan_device_real() > 1058 cleanup: > 1059 if (askpass) > 1060

[PATCH] cryptodisk: Fix Coverity use after free bug

2022-01-01 Thread Glenn Washburn
The Coverity output is: *** CID 366905: Memory - illegal accesses (USE_AFTER_FREE) /grub-core/disk/cryptodisk.c: 1064 in grub_cryptodisk_scan_device_real() 1058 cleanup: 1059 if (askpass) 1060 { 1061 cargs->key_len = 0; 1062 grub_free (cargs->