lkml.org 
[lkml]   [2024]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH bpf-next] bpf: fix oob in btf_name_valid_section
From
Date
On Mon, 2024-03-11 at 11:01 -0700, Andrii Nakryiko wrote:
[...]

> Eduard, I'd also say we should make __btf_name_valid() a bit more
> uniform by dropping that first if and then doing
>
> if (!__btf_name_char_ok(*src, src == src_orig))
> return false;
>
> where we just remember original string pointer in src_orig.
>
> WDYT?

Agree, this looks simpler.

\
 
 \ /
  Last update: 2024-05-27 15:44    [W:0.076 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site