actionscript 3 - mcrypt_decrypt function stuck in eternal loop -
i'm working through decryption function , have hit wall. i'm not experienced actionscript when run function goes on infinite loop.
private function mcrypt_decrypt(param1:array, param2:number,param3:number): array { var _loc4_:* = -9.57401312e8; while(_loc4_) { var param3:number = param3 - ((param2 << 4 ^ param2 >>> 5) + param2 ^ _loc4_ + param1[_loc4_ >>> 11 & 3]); _loc4_ = _loc4_ - -1640531527; var param2:number = param2 - ((param3 << 4 ^ param3 >>> 5) + param3 ^ _loc4_ + param1[_loc4_ & 3]); } return [param2,param3]; }
from testing see loc4 starts -9.57401312e8 , iteration continues -1640531527 removed each time, in case satisfy while condition? ideas?
your function stuck in eternal loop because of this:
_loc4_ = _loc4_ - -1640531527;
a double minus sign same plus sign. since value never zero, evaluation in loop returns true.
Comments
Post a Comment