feat(zebin): code improvements

- Set initial value for ArgIndexT index in
KernelArgMiscInfoT struct
- Add check for arg index in extended metadata in order to avoid OOB
accesses
- Fix missing: populating ArgTypeTraits + refactor ULTs in order to
check it
- Add missing ULTs for Program::callPopulateZebinExtendedArgsMetadataOnce

Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
This commit is contained in:
Kacper Nowak
2022-11-03 14:07:05 +00:00
committed by Compute-Runtime-Automation
parent 2d229f3fea
commit a12251d464
5 changed files with 175 additions and 4 deletions

View File

@@ -790,9 +790,9 @@ using namespace Kernel::ExecutionEnv;
} // namespace Function
namespace Miscellaneous {
using ArgIndexT = uint32_t;
using ArgIndexT = int32_t;
struct KernelArgMiscInfoT {
ArgIndexT index;
ArgIndexT index = -1;
std::string kernelName;
std::string argName;
std::string accessQualifier;