Pārlūkot izejas kodu

ac: fix possible truncation of intrinsic name

Fixes the gcc warning:
snprintf’ output between 26 and 33 bytes into a destination of size 32

Fixes: d5f7ebda3e ("ac: add LLVM build functions for subgroup instrinsics")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
tags/18.2-branchpoint
Timothy Arceri pirms 7 gadiem
vecāks
revīzija
fae3b38770
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      src/amd/common/ac_llvm_build.c

+ 1
- 1
src/amd/common/ac_llvm_build.c Parādīt failu

@@ -2995,7 +2995,7 @@ static LLVMValueRef
ac_build_set_inactive(struct ac_llvm_context *ctx, LLVMValueRef src,
LLVMValueRef inactive)
{
char name[32], type[8];
char name[33], type[8];
LLVMTypeRef src_type = LLVMTypeOf(src);
src = ac_to_integer(ctx, src);
inactive = ac_to_integer(ctx, inactive);

Notiek ielāde…
Atcelt
Saglabāt