1. WEE error
- Posted by irv Dec 02, 2017
- 1170 views
It's been a long time since I ran Windows, but today, trying to edit a program, I get:
overflow! ptr=22F96D0 pattern=zpppiddpppppwii$ size=104
This is in a pop-up terminal window. What's up?
2. Re: WEE error
- Posted by petelomax Dec 03, 2017
- 1176 views
Well, it is obviously an error in window.ew (https://github.com/peberlein/WEE/blob/master/window.ew), routine allocate_pack(), some discrepancy between sizeof(pattern) and pack(ptr,pattern,data).
Try also displaying this, and posting the output here
?tmp-ptr ifdef BITS64 then ?8 elsedef ?4 end ifdef ?data
Pete
EDIT: thanks greg
3. Re: WEE error
- Posted by ghaberek (admin) Dec 03, 2017
- 1142 views
Try also displaying tmp-ptr, ifdef BITS64 then ?8 elsedef ?4 end ifdef, and ?data, and posting the output here
I added some formatting there because it looked like you were speaking gibberish.
-Greg
4. Re: WEE error
- Posted by irv Dec 03, 2017
- 1132 views
I should have added, this happens when I try to choose a font from the menu. This is on Windows 7, and I've not had this problem before, it just suddenly popped up. Windows updates, perhaps?
40 8 { 1, 0, 0, {71,116,107,69,110,103,105,110,101,46,101}, 0, 0, 0 } 100 8 {104,328204,0,51864160,0,64,0,0,0,0,0,0,0,0,0,0} overflow! ptr=213B120 pattern=zpppiddpppppwii$ size=104
5. Re: WEE error
- Posted by petelomax Dec 03, 2017
- 1131 views
I reproduced this on (/modified) an old copy of wee 0.36, so the root cause (if not the error message) has been around quite a while, at least 12 versions.
elsif x = '$' then size = align(size, max_align) exit else
elsif x = '$' then else
So pack isn't adding anything at all for the $, not quite sure what the best fix for that would be, perhaps copy max_align from sizeof() into pack() and poke some zeroes.
It is also an underflow rather than an overflow, less critical, poking less bytes than allocated, so maybe just change
if tmp - ptr != size then
to
if tmp - ptr > size then
Pete
6. Re: WEE error
- Posted by irv Dec 03, 2017
- 1108 views
Thanks. I made that change, and no more terminal popping up.