Bug#507591: maradns: Segmentation fault when using a config file with syntax error

2010-07-23 Thread Sam Trenholme
Upstream here.  This issue was never present in MaraDNS 1.2, and has
been fixed in MaraDNS 1.3.07.10 and MaraDNS 1.4.03.  If Debian
versions of MaraDNS still have this bug, they need to incorporate my
fix, or, better yet, upgrade to 1.3.07.10 or 1.4.03.

- Sam

Note: I do not answer MaraDNS (including Deadwood) support requests
sent by private email without being compensated for my time. A MaraDNS
support request is any and all discussion you may wish to have about
MaraDNS in private email; if you want to email me to talk about
MaraDNS then, yes, that is a support request. I will discuss rates if
you want this kind of support. Thank you for your understanding.

MaraDNS security vulnerability reports, however, will be dealt with
without charge and kept confidential. If you don't know what Bugtraq
is, then, no, your email is not a security report. It is not a
security report unless you've done due diligence to determine how the
security bug you think you found can reasonably be exploited.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#507591: maradns: Segmentation fault when using a config file with syntax error

2008-12-02 Thread Nelson A. de Oliveira
Package: maradns
Version: 1.3.07.09-2
Severity: normal

Hi!

While I know that the syntax error should be fixed in the config file, maradns
shouldn't segfault when reading a bad config file.

I don't know how helpful it is, but running it (compiled with noopt and
nostrip) with gdb I get this:


Starting program: /usr/sbin/maradns -f /etc/maradns/mararc
[Thread debugging using libthread_db enabled]
[New Thread 0xb7e176b0 (LWP 10279)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7e176b0 (LWP 10279)]
0x080673a8 in process_dname ()
Current language:  auto; currently asm

Thread 1 (Thread 0xb7e176b0 (LWP 10279)):
#0  0x080673a8 in process_dname ()
No locals.
#1  0x0806740a in csv2_get_hostname ()
No locals.
#2  0x08067fd5 in csv2_read_rr ()
No locals.
#3  0x08065445 in csv2_parse_zone ()
No locals.
#4  0x08065f42 in csv2_parse_main_bighash ()
No locals.
#5  0x08051c85 in populate_main ()
No locals.
#6  0x0804fa89 in main ()
No locals.


The error happens here:


# maradns -f /etc/maradns/mararc 
 Log: Root directory changed
 Log: Binding to address 127.0.0.1
 Log: Socket opened on UDP port 53
 Log: Root privileges dropped
Processing zone saocarlos.sp.gov.br. right now.
Filename: dns.saocarlos.sp.gov.br
Error: Improper termination of label
Label must end with '.' or '%' (A '*' is allowed in csv2_default_zonefile)
Error is on line 1 in file dns.saocarlos.sp.gov.br
context of error: aocarlos.sp.gov.br(closing this file)
Segmentation fault


Note that it misses the first character on the context of error line:
saocarlos.sp.gov.br - aocarlos.sp.gov.br

The line with the error (it's wrong, I know, missing a . at the end):

saocarlos.sp.gov.brMX  5   srv3-sao.sao.terraempresas.com.br.

Thank you very much!

Best regards,
Nelson

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.5-naoliv1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]