[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

new changes in strings+symbols

From: Mathieu Bouchard <matju@...>
Date: 2006-09-14 01:24:17 UTC
List: ruby-core #8861
On Wed, 13 Sep 2006, matz wrote:

>  Log:
>    * string.c (rb_str_intern): allow symbols to contains nul.
>    * string.c (sym_inspect): symbol may contain nul.

Hi, I wanted to try the above, and hit the following problem doing make 
install:

Generating RDoc documentation
./miniruby  ./runruby.rb --extout=.ext -- "./bin/rdoc" --all --ri --op 
"/home/matju/share/ri/1.9/system" "."
/debian64/home/matju/src/ruby-cvs/ruby/lib/rdoc/rdoc.rb:86:in 
`String#intern': Insecure: can't intern tainted string (SecurityError)
         from /debian64/home/matju/src/ruby-cvs/ruby/lib/rdoc/rdoc.rb:86

Which I saw was a feature introduced in a commit a few days (hours?) ago.

Besides, given that symbols can contain nulls now, why are symbols still 
prevented from being of null length? It's something that has been a 
problem in mapping Ruby to another language (PureData) in which 
empty-string symbols are (abnormally) common.

Thanks.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - t駘:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montr饌l QC Canada

In This Thread

Prev Next