diff options
Diffstat (limited to 'gnu/packages/patches/pnet-fix-off-by-one.patch')
-rw-r--r-- | gnu/packages/patches/pnet-fix-off-by-one.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/patches/pnet-fix-off-by-one.patch b/gnu/packages/patches/pnet-fix-off-by-one.patch new file mode 100644 index 0000000000..858d226697 --- /dev/null +++ b/gnu/packages/patches/pnet-fix-off-by-one.patch @@ -0,0 +1,13 @@ +diff --git a/codegen/cg_genattr.c b/codegen/cg_genattr.c +index 535852da..c3acc0dc 100644 +--- a/codegen/cg_genattr.c ++++ b/codegen/cg_genattr.c +@@ -1532,7 +1532,7 @@ static int MarshalAsAttribute(ILGenInfo *info, + else + { + sizeParamIndex = attributeInfo->namedArgs[currentNamedArg].evalValue.un.i4Value; +- if(sizeParamIndex <= 0) ++ if(sizeParamIndex < 0) + { + CGErrorForNode(info, attributeInfo->namedArgs[currentNamedArg].node, + _("The size parameter index must be >= 0")); |