endrazine / wcc

The Witchcraft Compiler Collection
Other
1.84k stars 107 forks source link

Backport CVE-2020-24370's patch #43

Open the-Chain-Warden-thresh opened 8 months ago

the-Chain-Warden-thresh commented 8 months ago

CVE-2020-24370 is a security vulnerability in lua. Although the CVE decription in CVE-2020-24370 said that this CVE only affected lua 5.4.0, according to lua this CVE actually existed since lua 5.2. The root cause of this CVE is the negation overflow that occurs when you try to take the negative of 0x80000000. Thus, this CVE also exists in wcc. Try to backport the fix to the lua in wcc since the original fix is for 5.4 and several functions have been changed.