bareos: master e689793a

Author Committer Branch Timestamp Parent
arogge Bareos Bot master 2023-09-22 12:15 master 17d52888 Pending
Changeset findlib: fix possible stringop-overflow

For the compiler the expression `path_max + name_max + 102` could have
evaluated to 0, leaving us with `path_max + name_max + 101` being -1 and
thus we would pass a 0-byte to readlink(), but provide -1 for size.

By adding the assertion, this is now no longer possible.
mod - core/src/findlib/find_one.cc Diff File