[PATCH] D139449: [ObjYAML] Pass 10 instead of 16 for strncmp

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 16:33:10 PST 2022


MaskRay added a comment.

segname has 16 elements. It may contain a segname of exactly 16 bytes. It's UB to call strcmp with segname as an argument.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139449/new/

https://reviews.llvm.org/D139449



More information about the llvm-commits mailing list