| commit | 34186d026bad09e8e2bd9839bce138616c5d2557 | [log] [tgz] |
|---|---|---|
| author | Samanta Navarro <ferivoz@riseup.net> | Sat Aug 21 12:11:00 2021 +0000 |
| committer | Andrew G. Morgan <morgan@kernel.org> | Sat Aug 21 08:29:40 2021 -0700 |
| tree | b4f1e2df0a3eb4e90fcb2916691268252fe41eae | |
| parent | d21a561ddb80cdc039f32eb5225f5d398d221291 [diff] |
Fix endless loop with very long strings If a string with more than UINT_MAX characters is passed into cap_from_text, then an endless loop occurs in lookupname. This is clearly an edge case but the fix is very simple as well: Use size_t instead of unsigned. Signed-off-by: Samanta Navarro <ferivoz@riseup.net> Signed-off-by: Andrew G. Morgan <morgan@kernel.org>