On Wed, Jun 25, 2025 at 10:43 AM Marat Khalili wrote:
>
> Thank you for doing this.
>
> > +static bool
> > +ends_with(const char *str, size_t str_len, const char *tail)
>
> I too think we should have a general ends_with, I for one had to code one
> just this week. However, I do not think it shoul
Thank you for doing this.
> +static bool
> +ends_with(const char *str, size_t str_len, const char *tail)
I too think we should have a general ends_with, I for one had to code one just
this week. However, I do not think it should support non-null-terminated
strings.
> +{
> + size_t tail_len
For '.' and '..' directories (or any short file name),
a out of bound issue occurs.
Caught by UBSan:
EAL: Detected shared linkage of DPDK
../lib/eal/common/eal_common_options.c:420:15: runtime error: index -2
out of bounds for type 'char[256]'
#0 0x7f867eedf206 in eal_plugindir_init
3 matches
Mail list logo