Wind River Support Network

HomeDefectsLIN1024-9501
Fixed

LIN1024-9501 : Bug found in sysfsutils sources, for my_strncat function

Created: May 28, 2025    Updated: Jun 16, 2025
Resolved Date: Jun 5, 2025
Found In Version: 10.24.33.8
Fix Version: 10.24.33.10
Severity: Standard
Applicable for: Wind River Linux LTS 24
Component/s: Userspace

Description

The bug was introduced by upstream commit [1] where strncat was replaced with
internal my_strncat function, such as:

  char dest[32] = "/sys/devices/platform/axi";
  my_strncat(dest, "/", sizeof(dest) - strlen(dest) - 1);

Will result in dest string being:

  /sys/

and not the expected:

  /sys/devices/platform/axi/

[1] https://github.com/linux-ras/sysfsutils/commit/0719881cad85f837f039ecb378b823306640902a
Live chat
Online