From 6d959f6f90417339baefc411fb3cdb7f29144159 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 11 Oct 2019 19:38:28 +0200 Subject: [PATCH] Handle llGetLinkName with invalid values --- lslopt/lslextrafuncs.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lslopt/lslextrafuncs.py b/lslopt/lslextrafuncs.py index a295727..7fb8723 100644 --- a/lslopt/lslextrafuncs.py +++ b/lslopt/lslextrafuncs.py @@ -299,6 +299,11 @@ def llGetInventoryPermMask(item, category): return 0 raise ELSLCantCompute +def llGetLinkName(link): + link = fi(link) + if link < -2147483646 or link > 256: + return NULL_KEY + raise ELSLCantCompute def llGetOwnerKey(id): id = fk(id)