Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: explanation, gurus? :-) (image memory representation)

From: dockimbel:free at: 21-Aug-2001 12:14

Hi Petr, Petr Krenzelok wrote: [...]
> img: make image! [1x1 #{FFFFFF}] > ->> first img > == 255.255.255 > ->> second img > == 0.255.255 > ->> third img > == 99.0.255 > ->> fourth img > == 108.99.0 > > where do second, third, fourth come from?
Seems to be a bug !
> What about this one? > > img: make image! [10x10 #{FFFFFF}] > == make image! [10x10 #{ > FFFFFFCC96CFD8A9CD0000000A00004C96CFE8B0CD0000000A00001C90CF > E8B0CD0000000A0000C4E3D9E8B0CD0000000A000084E...
That's clearly a bug. The byte sequence that appear is a Rebol memory space dump !! It's more than a simple bug, it's a potential security hole ! Also, did you notice that image!'s data are stored internally in 32 bits ?
>> img: make image! [1x1 #{FFFFFF}]
== make image! [1x1 #{FFFFFF}]
>> length? img
== 4
>> to-binary img
== #{FFFFFF00} It would be great if more Rebol types were supported by the /library interface. (Image! should be my first choice!). Regards, DocKimbel.