]> git.ipfire.org Git - thirdparty/nftables.git/commit
erec: fix buffer overflow
authorEric Leblond <eric@regit.org>
Wed, 24 Jun 2015 07:51:49 +0000 (09:51 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 Jun 2015 22:59:56 +0000 (00:59 +0200)
commit1f3b7755dd27c8a58868cfac8cdbe7690160f9f3
treeb9f26c1b25206c9442ed7be4320014e9a2b305ce
parent9f06d928d32155fde97bc3ad6d7ca7f78eb6cf67
erec: fix buffer overflow

A static array was used to read data and to write information in
it without checking the limit of the array. The result was a buffer
overflow when the line was longer than 1024.

This patch now uses a allocated buffer to avoid the problem.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/erec.c