Skip to content

Commit

Permalink
libgluonutil: add missing libgen import (freifunk-gluon#3395)
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>
  • Loading branch information
blocktrron authored and RolandoMagico committed Dec 25, 2024
1 parent 45b1a5b commit 35c4fc8
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 35c4fc8

Please sign in to comment.