c/8115: Modulair var is not checked

j.westgeest@chello.nl j.westgeest@chello.nl
Tue Oct 1 23:56:00 GMT 2002


>Number:         8115
>Category:       c
>Synopsis:       Modulair var is not checked
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 01 23:56:03 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     j.westgeest@chello.nl
>Release:        2002-06-25_FREAKS.exe
>Organization:
>Environment:
win2000
>Description:
when you declare an unsigned char global.
and check it in your main loop the code is wrong.
reg 24 is and with reg 24.
and jmp -2 which makes an never ending loop.

but if you make an global pointer to an local var and check this one the code is ok.
>How-To-Repeat:
See Zip
>Fix:
Do not know, but for workaround see zip
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-zip-compressed; name="code.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="code.zip"

UEswMFBLAwQUAAIACAAqREIt6fTxh7kDAAAmCQAADQAAAExhc2VyIHdvcmtzLmOlVW2P2jgQ/kyl
/oeRKp0SxBaCKrRXtpUgsC063hTCiVVVIW9iiHXBQYnDse31fvvNOAlJ2O2H6pBY7GdmHo8fz8y+
EdILU5/DnYjeBh9fv3pTAlLxOE6P6gpPxP6GnWKNIu7znZAc7rf2cg2VT6+jP9mm3YTeLPgGzXYZ
sR447nY4WI+2zsAdZ36/9yoRevPIUl+HvRS4Gk/HtguGPrxt1BmbVi80byyzGjobbJaLydxdQbdD
eLudSryP5D54AYtBHpYR3jv5cnH8+qX7tf+So8M9Lk7cR2Pd1DzIOT8rG9d9OmM1+TQfTA382eoE
nbH9p5ldEnmbQLEshIBJP+Qx7KIY4owbvOhwDLnicHkLLcX3168oOuZ7kSCeHRvqVDILruEDBh2N
9cgx+8WT4GExZz48PiElnUP5gM8Ug8d0t0MmYifPKFVH41+kacFy4bjDnAMJyJKqIsOcS0WwjGI1
BGM6HiWmpvmR6QtKHJ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