Skip to content

Commit

Permalink
libgluonutil: add missing libgen import (#3395) (#3398)
Browse files Browse the repository at this point in the history
The import of libgen.h required for basename() was missing. This lead to
undesired behavior on 64 bit systems, where only the upper 32-bit of the
returned pointer was used.

On ARM64 systems such as mediatek-filogic, this lead to a signed extend
of the 32-bit address, leading to a crash of respondd.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 3654f83)

Co-authored-by: David Bauer <mail@david-bauer.net>
  • Loading branch information
github-actions[bot] and blocktrron authored Dec 19, 2024
1 parent 01193c8 commit 6f289cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package/libgluonutil/src/libgluonutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include <errno.h>
#include <glob.h>
#include <libgen.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
Expand Down

0 comments on commit 6f289cf

Please sign in to comment.