]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Prevent possible memory overwrite
authorDonald Sharp <sharpd@nvidia.com>
Sun, 24 Jan 2021 12:52:55 +0000 (07:52 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 25 Jan 2021 14:15:36 +0000 (09:15 -0500)
commit833c1f9fd14c4764b9f36f5e61c57130ff4f7118
tree84a4b8b18f24ed6e839853bfc28fb591cdea3552
parent8f17f6eb2db11cf8c93c47eda6eafc4981eeab29
lib: Prevent possible memory overwrite

fname is MAXPATHLEN and scriptdir and fs->name are less then
MAXPATHLEN but the combination of those two + the `.lua` are
greater than the MAXPATHLEN.  Just give us more room to prevent
a coding boo boo.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/frrscript.c