flood_fill_seed: Add comments on exit conditions
This commit is contained in:
parent
22269c9a43
commit
6b3575cd59
1 changed files with 8 additions and 0 deletions
|
@ -234,6 +234,13 @@ static void flood_fill_seed(struct quirc *q,
|
|||
quirc_pixel_t *row;
|
||||
|
||||
if (vars == last_vars) {
|
||||
/*
|
||||
* "Stack overflow".
|
||||
* Just stop and return.
|
||||
* This can be caused by very complex shapes in
|
||||
* the image, which is not likely a part of
|
||||
* a valid QR code anyway.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -268,6 +275,7 @@ static void flood_fill_seed(struct quirc *q,
|
|||
continue;
|
||||
}
|
||||
|
||||
/* We've done. */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue