Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix array overflow for function argument types in orca
In function “CTranslatorUtils::ResolvePolymorphicTypes()”, the size of array arg_types is num_args, and it is smaller than total_args, this causes a memory corruption and a backend crash. Fixed by correcting the array size "total_args"(num_args + num_return_args). Then copy the first 'num_args' function argument types for arrary arg_types, the copying number can not exceed num_args. Fixes GitHub issue #11880 (cherry picked from commit 2f45387)
- Loading branch information
1 parent
f6f46db
commit 2888fcc
Showing
5 changed files
with
46 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters