mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-03 14:56:47 -04:00
app: Avoid a potential segfault when skipping columns
Closes: #2942
Approved by: mwleeds
(cherry picked from commit cd231503f2)
This commit is contained in:
committed by
Alexander Larsson
parent
5a16666bdc
commit
bfb7d4217a
@@ -372,6 +372,9 @@ colum_is_unique (FlatpakTablePrinter *printer, int col)
|
||||
for (i = 0; i < printer->rows->len; i++)
|
||||
{
|
||||
Row *row = g_ptr_array_index (printer->rows, i);
|
||||
if (col >= row->cells->len)
|
||||
continue;
|
||||
|
||||
Cell *cell = g_ptr_array_index (row->cells, col);
|
||||
|
||||
if (i == 0)
|
||||
|
||||
Reference in New Issue
Block a user