[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Perl interface: SVN::Core::dirent_canonicalize segfaults on undef

From: Vincent Lefevre <vincent-svn_at_vinc17.net>
Date: Fri, 22 Jan 2016 13:47:54 +0100

I have reported the following Debian bug:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812318

With Subversion 1.9.3:

$ perl -MSVN::Core -e 'SVN::Core::dirent_canonicalize(undef)'
zsh: segmentation fault (core dumped) perl -MSVN::Core -e 'SVN::Core::dirent_canonicalize(undef)'

In case of undef, I suppose that the Perl module should pass the empty
string to the library (for which there are no errors), or return some
other kind of error.

I have not tried other kinds of arguments, but in any case, the
module should make sure that a valid string is passed to the
library.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Received on 2016-01-22 13:48:08 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.