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.br    MX      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]

Reply via email to