summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/pmore.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c
index 45cd83c7..947c4486 100644
--- a/mbbsd/pmore.c
+++ b/mbbsd/pmore.c
@@ -2876,6 +2876,11 @@ mf_movieGotoNamedFrame(const unsigned char *name, const unsigned char *end)
if (mf.end - p < sz)
continue;
+ // check: target of p must end.
+ if (mf.end -p > sz &&
+ isalnum(*(p+sz)))
+ continue;
+
if (memcmp(p, name, sz) == 0)
return 1;