Thread overview | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
January 26, 2011 [Issue 5493] New: Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5493 Summary: Able to overwrite immutable data Product: D Version: D2 Platform: x86_64 OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: robert.welin@hotmail.com --- Comment #0 from robert.welin@hotmail.com 2011-01-26 12:52:31 PST --- Hello, I wrote a simple D program to test the immutable attribute and discovered that by using standard input I could change immutable data, see code below. import std.stdio; void main() { //Initialize string buf immutable char[] buf = "hello"; writefln("buf = %s",buf); //Change value of buf with standard input stdin.readln(buf); writefln("buf = %s",buf); } Cheers Robert -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 26, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrmocool@gmx.de --- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> 2011-01-26 13:10:21 PST --- *** Issue 5492 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 26, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P5 Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|nobody@puremagic.com |bugzilla@digitalmars.com Severity|normal |major --- Comment #2 from Andrei Alexandrescu <andrei@metalanguage.com> 2011-01-26 13:14:44 PST --- Reduced to: void main() { immutable char[] buf = "hello"; void fun(ref immutable(char)[] a) {} fun(buf); } This is a major bug. Please vote. Walter, it would be great if you gave this the utmost attention. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 26, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 Trass3r <mrmocool@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Phobos |DMD Platform|x86_64 |All OS/Version|Mac OS X |All --- Comment #3 from Trass3r <mrmocool@gmx.de> 2011-01-26 13:28:59 PST --- Seems to compile on all platforms. Runs fine on Windows. Segfaults on Linux, doesn't when using 'string buf' instead. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 27, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha@yahoo.com --- Comment #4 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:06 PST --- *** Issue 5273 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 27, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dsimcha@yahoo.com CC| |andrej.mitrovich@gmail.com --- Comment #4 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:06 PST --- *** Issue 5273 has been marked as a duplicate of this issue. *** --- Comment #5 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:09 PST --- *** Issue 4832 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 27, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simen.kjaras@gmail.com --- Comment #6 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:18 PST --- *** Issue 5291 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 27, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #7 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:24 PST --- *** Issue 4416 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 27, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc CC| |smjg@iname.com --- Comment #7 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:24 PST --- *** Issue 4416 has been marked as a duplicate of this issue. *** --- Comment #8 from yebblies <yebblies@gmail.com> 2011-01-26 18:27:29 PST --- *** Issue 3534 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 27, 2011 [Issue 5493] Able to overwrite immutable data | ||||
---|---|---|---|---|
| ||||
Posted in reply to robert.welin@hotmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=5493 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yebblies@gmail.com --- Comment #9 from yebblies <yebblies@gmail.com> 2011-01-26 18:29:19 PST --- Others marked as duplicates as this is the version that has the most votes, highest priority and is the only one that has been assigned. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation