-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APPEND to object of block of odd length can crash #708
Comments
Submitted by: BrianH This is what I get when I enter your code in a fresh console:
This is the wrong error – there is no frame! in that statement. On a hunch I next try: >> append make object! [] [x y z]…and I get your crash error. This indicates that there is a bounds checking problem when you append a block with an odd number of values in it to an object. APPEND to an object is supposed to add unset! when just a word! is appended, like this: >> append make object! [] ’a == make object! [ a: unset! ]Clearly when the value portion is missing from APPEND of [name value], it just tries to use whatever is next in memory instead of assigning unset!. Depending on what is next in memory, that could crash the system or render it corrupt. Upped the severity and priority accordingly. |
This bug seems to be fixed, although there is different result when using block with word without value, or when used just a word:
I think that the result should be same... so having |
Submitted by: Sunanda
REBOL System Error 1305; invalid data type 83
CC – Data [ Version: alpha 47 Type: Bug Platform: All Category: n/a Reproduce: Always Fixed-in:alpha 49 ]
The text was updated successfully, but these errors were encountered: