[iptables] libxtables: flush before fork

Patrick McHardy netfilter-cvslog-bounces at lists.netfilter.org
Thu Feb 12 07:21:52 CET 2009


Gitweb:		http://git.netfilter.org/cgi-bin/gitweb.cgi?p=iptables.git;a=commit;h=c19f880d8aac7c0372381e29d7cea09accd0db26
commit c19f880d8aac7c0372381e29d7cea09accd0db26
Author:     Jan Engelhardt <jengelh at medozas.de>
AuthorDate: Thu Feb 12 01:28:35 2009 +0100
Commit:     Jan Engelhardt <jengelh at medozas.de>
CommitDate: Thu Feb 12 07:15:07 2009 +0100

    libxtables: flush before fork
    
    Reference: http://bugs.debian.org/514869
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

commit 37b4bde745698bf140d74e59a2561f34deeb8726
Author:     Jan Engelhardt <jengelh at medozas.de>
AuthorDate: Thu Feb 12 01:18:35 2009 +0100
Commit:     Jan Engelhardt <jengelh at medozas.de>
CommitDate: Thu Feb 12 07:15:07 2009 +0100

    libxt_string: fix undefined behavior/incorrect patlen calculation
    
    strlen ran over the end of the string. Use strnlen to bound it.
    
    Reference: http://bugs.debian.org/513516
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

commit 41f03ba382dfd26e7db939fd02447058b1c56f7b
Author:     Jan Engelhardt <jengelh at medozas.de>
AuthorDate: Wed Feb 11 16:13:47 2009 +0100
Commit:     Jan Engelhardt <jengelh at medozas.de>
CommitDate: Thu Feb 12 07:15:07 2009 +0100

    libxtables: use const for vars holding literals
    
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>
       via  c19f880d8aac7c0372381e29d7cea09accd0db26 (commit)
       via  37b4bde745698bf140d74e59a2561f34deeb8726 (commit)
       via  41f03ba382dfd26e7db939fd02447058b1c56f7b (commit)
      from  6f3c30059d9cf73c438db08998c58cd1b502eb44 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c19f880d8aac7c0372381e29d7cea09accd0db26
Author: Jan Engelhardt <jengelh at medozas.de>
Date:   Thu Feb 12 01:28:35 2009 +0100

    libxtables: flush before fork
    
    Reference: http://bugs.debian.org/514869
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

commit 37b4bde745698bf140d74e59a2561f34deeb8726
Author: Jan Engelhardt <jengelh at medozas.de>
Date:   Thu Feb 12 01:18:35 2009 +0100

    libxt_string: fix undefined behavior/incorrect patlen calculation
    
    strlen ran over the end of the string. Use strnlen to bound it.
    
    Reference: http://bugs.debian.org/513516
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

commit 41f03ba382dfd26e7db939fd02447058b1c56f7b
Author: Jan Engelhardt <jengelh at medozas.de>
Date:   Wed Feb 11 16:13:47 2009 +0100

    libxtables: use const for vars holding literals
    
    Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

-----------------------------------------------------------------------

 extensions/libxt_string.c |    4 +++-
 include/xtables.h.in      |    3 +--
 xtables.c                 |    6 ++++++
 3 files changed, 10 insertions(+), 3 deletions(-)
Signed-off-by: Jan Engelhardt <jengelh at medozas.de>

diff --git a/include/xtables.h.in b/include/xtables.h.in
index 6712aac..ae1594a 100644
--- a/include/xtables.h.in
+++ b/include/xtables.h.in
@@ -186,8 +186,7 @@ enum xtables_exittype {
 struct xtables_globals
 {
 	unsigned int option_offset;
-	char *program_version;
-	char *program_name;
+	const char *program_name, *program_version;
 	struct option *opts;
 	void (*exit_err)(enum xtables_exittype status, const char *msg, ...) __attribute__((noreturn, format(printf,2,3)));
 };



More information about the netfilter-cvslog mailing list