Bug 2389344 - Build errors: overflows, memory management errors
Summary: Build errors: overflows, memory management errors
Keywords:
Status: CLOSED DUPLICATE of bug 2340927
Alias: None
Product: Fedora
Classification: Fedora
Component: newlisp
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Filipe Rosset
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-19 08:02 UTC by Nikola Davidova
Modified: 2026-03-04 17:33 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-03-04 17:33:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nikola Davidova 2025-08-19 08:02:32 UTC
Fails since f42.

The error:
 and 12 bytes into a destination of size 4
 2095 |             snprintf(hostaddr + len, 4, "%d", ipNo);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nl-math.c: In function ‘p_bayesTrain’:
nl-math.c:2657:12: warning: argument to ‘alloca’ is too large [-Walloca-larger-than=]
 2657 | category = alloca(maxIdx * sizeof(CELL *));
      |            ^~~~~~
nl-math.c:2657:12: note: limit is 9223372036854775807 bytes, but argument is 18446744073709551608
nl-math.c:2658:9: warning: argument to ‘alloca’ is too large [-Walloca-larger-than=]
 2658 | total = alloca(maxIdx * sizeof(int));
      |         ^~~~~~
nl-math.c:2658:9: note: limit is 9223372036854775807 bytes, but argument is 18446744073709551612
nl-math.c:2685:9: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation]
 2685 |         strncpy(token, ((SYMBOL *)list->contents)->name, MAX_SYMBOL + 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nl-math.c: In function ‘p_bayesQuery’:
nl-math.c:2918:9: warning: ‘strncpy’ specified bound 1024 equals destination size [-Wstringop-truncation]
 2918 |         strncpy(token, ((SYMBOL *)tkn->contents)->name, MAX_SYMBOL + 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
newlisp.c: In function ‘loadStartup’:
newlisp.c:560:25: warning: ‘%s’ directive argument is null [-Wformat-overflow=]
  560 |             printf("%s: %s\n", strerror(ENOENT), name);
      |                         ^~
RPM build errors:

Reproducible: Always

Comment 1 Filipe Rosset 2026-03-04 17:33:20 UTC

*** This bug has been marked as a duplicate of bug 2340927 ***


Note You need to log in before you can comment on or make changes to this bug.