[Python-modules-team] Bug#862741: python3-iptables: rule.create_match() raises MemoryError

Chris Lamb lamby at debian.org
Wed May 17 13:01:39 UTC 2017


Hi,

> python3-iptables: rule.create_match() raises MemoryError

I can reproduce this:

$ sudo apt-get install python3-iptables
[…]
Setting up python3-iptables (0.11.0-3) ...
[…]

$ python3 
Python 3.5.3 (default, Jan 19 2017, 14:11:04) 
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import iptc
>>> iptc.Rule().create_match('udp')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/iptc/ip4tc.py", line 959, in create_match
    match = Match(self, name=name, revision=revision)
  File "/usr/lib/python3/dist-packages/iptc/ip4tc.py", line 558, in __init__
    self.reset()
  File "/usr/lib/python3/dist-packages/iptc/ip4tc.py", line 635, in reset
    udata_buf = (ct.c_ubyte * udata_size)()
MemoryError
>>> 

$ uname -a
Linux keyboardcat.chris-lamb.co.uk 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 (2017-02-27) x86_64 GNU/Linux



Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-



More information about the Python-modules-team mailing list