Files
Qliangw cd75edf25d libuio: fix FILE descriptor leak
The function uio_line_from_file() fails to close the FILE pointer
when fgets() returns NULL, causing a file descriptor leak.

This can be triggered when reading from /sys files that return
empty content, leading to resource exhaustion over time.

Fix this by using goto-based error handling to ensure fclose()
is called on all exit paths.

Signed-off-by: Qliangw <qili00001@gmail.com>
2026-06-30 23:37:18 -07:00

20 lines
490 B
BlitzBasic

SUMMARY = "Libuio - helper library for UIO subsystem"
SECTION = "base"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
SRCREV = "17d96e8f9a5bce7cee5e2222855ab46a246dba51"
SRC_URI = "git://git.code.sf.net/p/libuio/code;branch=master;protocol=https"
SRC_URI += "file://fix-fclose-leak-in-uio_line_from_file.patch"
PV .= "+0.2.2+git"
inherit autotools
PACKAGES += "${PN}-tools"
FILES:${PN} = "${libdir}"
FILES:${PN}-tools = "${bindir}"