Fix incorrect TPA error accepted/tizen/unified/20240329.131808 accepted/tizen/unified/x/20240401.142627
authorWoongsuk Cho <ws77.cho@samsung.com>
Thu, 28 Mar 2024 21:58:08 +0000 (06:58 +0900)
committer조웅석/MDE Lab(SR)/삼성전자 <ws77.cho@samsung.com>
Fri, 29 Mar 2024 03:40:36 +0000 (12:40 +0900)
commitc346220a76f4e5194cb6b30e992e098b7605eb4d
tree779a109e4e969efe8fa2debee3799800f17da640
parent5924bec17a0fcd61147817302b6fa4eb105dcfa3
Fix incorrect TPA error

The isManagedAssembly() function receives a file name as an input and checks only the extension.
But, it calls isR2RImage(), which requires a full path to the file internally.

Upon checking the usage of the isManageAssembly() function,
it is confirmed that it is used only to check whether it is a dll file or not.

So, the isManagedAssembly() function has been modified to return true even in the case of including a native image,
and related codes have been reorganized.
NativeLauncher/inc/utils.h
NativeLauncher/launcher/exec/corerun.cc
NativeLauncher/tool/ni_common.cc
NativeLauncher/util/utils.cc