mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 06:18:47 +02:00
Don't let pad function make over-long strings.
This commit is contained in:
@@ -1040,6 +1040,10 @@ static int FPad(func_info *info)
|
||||
return E_BAD_TYPE;
|
||||
}
|
||||
|
||||
if (MaxStringLen > 0 && wantlen > (size_t) MaxStringLen) {
|
||||
return E_STRING_TOO_LONG;
|
||||
}
|
||||
|
||||
DBufInit(&dbuf);
|
||||
s = ARGSTR(1);
|
||||
if (Nargs < 4 || !ARGV(3)) {
|
||||
|
||||
Reference in New Issue
Block a user