Public bug reported:
Binary package hint: pdns-server
My colleague and I have found a problem with the dns proxy in the pdns
server. The current code doesn't work on a big endian machine (this
problem has been replicated on a SPARC box as well as a PA-RISC box.
There were two files changed to fix this problem:
dnsproxy.cc:
173a174,177
> #ifdef WORDS_BIGENDIAN
> // this is needed because spoof ID down below does not respect the
> native byteorder
> d.id = ( 256 * (uint16_t)buffer[1] ) + (uint16_t)buffer[0];
> #endif
dnspacket.hh:
347,350d346
< #ifdef WORDS_BIGENDIAN
< stringbuffer[0]=(id>>8)&0xff;
< stringbuffer[1]=id&0xff;
< #else
353d348
< #endif
There are still errors that I am getting on my PA-RISC box (from the syslog):
Sep 16 19:48:31 rizzo kernel: pdns_server(5358): unaligned access to 0x44a3fb6e
at ip=0x0002cd0f
I haven't investigated this other problem yet.
** Affects: pdns (Ubuntu)
Importance: Untriaged
Status: Unconfirmed
--
Endian problems in pdns-server recursor
https://launchpad.net/bugs/60699
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs