Reproducible segfault when entering wrong passphrase in irssi plugin

Jérémy Bobbio <[email protected]>
Newsgroups gmane.network.silc.devel
Message-ID <[email protected]>
Hi!

I stumbled on a reproducible segfault within the SILC irssi plugin.  It happens
everytime when a wrong passphrase is entered during the plugin load.

Here's some relevant debugging information:

--- 8< ---
(gdb) bt full
#0  0x00002b40b995c7b1 in silc_pkcs_private_key_free (private_key=0x6b3fd0)
    at silcpkcs.c:567
No locals.
#1  0x00002b40b99151a9 in silc_core_deinit () at silc-core.c:833
No locals.
#2  0x00002b40b9915b88 in silc_core_init () at silc-core.c:781
	rec = <value optimized out>
	params = {threads = 0 '\0', 
  nickname_format = "%n#%a", '\0' <repeats 26 times>, 
  nickname_force_format = 0 '\0', dont_register_crypto_library = 0 '\0'}
	def_cipher = 0x1 <Address 0x1 out of bounds>
	def_hash = 0x6a9a00 "sha1"
	def_hmac = 0x6a9ac0 "hmac-sha1-96"
[...]

(gdb) frame 0
#0  0x00002b40b995c7b1 in silc_pkcs_private_key_free (private_key=0x6b3fd0)
    at silcpkcs.c:567
567	  private_key->pkcs->private_key_free(private_key->private_key);

(gdb) print private_key->pkcs
$0 = (const SilcPKCSObject *) 0x0
--- >8 ---

Cheers,
-- 
Jérémy Bobbio                        .''`. 
[email protected]                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-

_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFGXq1y2PUjs9fQ72URAhZlAKCW/Ede18YaY036MH8g7yKb38Uo7gCgrnlU
qe0hlYO4L9jjXNjKbD2uBto=
=a51y
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.