Skip to content

Commit

Permalink
libgluonutil: add missing libgen import (freifunk-gluon#3395) (freifu…
Browse files Browse the repository at this point in the history
…nk-gluon#3398)

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 <[email protected]>
(cherry picked from commit 3654f83)

Co-authored-by: David Bauer <[email protected]>
  • Loading branch information
2 people authored and ecsv committed Feb 8, 2025
1 parent 61337cc commit a35e8b7
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 a35e8b7

Please sign in to comment.