mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Bugfix: non-integer lists terminate with a NIL value that should
be skipped when unpacking terms (also submitted to author).
This commit is contained in:
parent
bb708d2cd0
commit
b2cf40e6be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=70262
2 changed files with 11 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= py_otp_interface
|
PORTNAME= py_otp_interface
|
||||||
PORTVERSION= 0.91
|
PORTVERSION= 0.91
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= devel python
|
CATEGORIES= devel python
|
||||||
MASTER_SITES= http://www.erlang.org/contrib/
|
MASTER_SITES= http://www.erlang.org/contrib/
|
||||||
DISTNAME= py_interface-${PORTVERSION}
|
DISTNAME= py_interface-${PORTVERSION}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
$FreeBSD$
|
$FreeBSD$
|
||||||
|
|
||||||
--- erl_term.py.orig Wed May 29 00:09:25 2002
|
--- erl_term.py.orig Wed May 29 00:09:25 2002
|
||||||
+++ erl_term.py Sat Nov 16 00:53:45 2002
|
+++ erl_term.py Sat Nov 16 17:40:38 2002
|
||||||
@@ -282,7 +282,7 @@
|
@@ -282,7 +282,7 @@
|
||||||
if dataLen < 5:
|
if dataLen < 5:
|
||||||
return (None, data)
|
return (None, data)
|
||||||
|
@ -12,6 +12,15 @@ $FreeBSD$
|
||||||
|
|
||||||
elif data0 == MAGIC_FLOAT:
|
elif data0 == MAGIC_FLOAT:
|
||||||
if dataLen < 32:
|
if dataLen < 32:
|
||||||
|
@@ -373,7 +373,7 @@
|
||||||
|
(elements, remainingData) = _UnpackTermSeq(arity, data[5:])
|
||||||
|
if elements == None:
|
||||||
|
return (None, data)
|
||||||
|
- return (ErlList(elements), remainingData)
|
||||||
|
+ return (ErlList(elements), remainingData[1:]) # skip MAGIC_NIL
|
||||||
|
|
||||||
|
elif data0 == MAGIC_BINARY:
|
||||||
|
if dataLen < 5:
|
||||||
@@ -552,11 +552,11 @@
|
@@ -552,11 +552,11 @@
|
||||||
|
|
||||||
def _PackString(term):
|
def _PackString(term):
|
||||||
|
|
Loading…
Add table
Reference in a new issue