Announce: udns version 0.3 has been released

Michael Tokarev mjt at tls.msk.ru
Sat Jan 18 16:46:26 MSK 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This is a bugfix release, with one notable change:
it makes list manipulation code in udns_resolver.c
(internal to the library) to be more strict-aliasing-
friendly, so gcc wont miscompile the code anymore.

The old code was correct and incorrect at the same
time.  According to the C language standard, one
can not manipulate the same place in memory using
different, incompatible, pointers.  Udns code used
pointers of different types pointing to the same
memory.  While the addresses were the same, more
recent compilers, according to the language rules,
optimized the code "too much", -- gcc didn't see
that after modifying the variable using one pointer,
value pointed to by another pointer (with the same
address!) also changes.  This resulted in miscom-
pilation, and non-working library.

In this release I refactored list code to not use
constructs wich breaks strict aliasing rules.

And there's one more minor bugfix too, in rblcheck
and its reading of ~/.rblcheckrc file - it does not
segfault anymore.

As usual, you can find udns library at

 http://www.corpit.ru/mjt/udns.html

Thanks,

/mjt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iJwEAQECAAYFAlLad50ACgkQUlPFrXTwyDiY5AP/Y3uGyxqFimUNPA1NsKIUi0N9
dmp+XwdgUMeNiEkssXTomQkPzuEBBzZRWYBFWG1tjKZMTnlCPAJPobo392h0a/5D
vLIkKEsGrcnX8AO3FnHRqnSPbHKL0AqVkJqGwWSAkkXgAJBAtzNRtJ9xexSmt+XW
YDqCUmv7RdJMr7mLFXY=
=nxbM
-----END PGP SIGNATURE-----


More information about the udns mailing list