View Issue Details

IDProjectCategoryView StatusLast Update
0000026freemMemory Safety and Securitypublic2025-04-12 22:31
ReporterSerena Willis Assigned ToSerena Willis  
PriorityhighSeveritymajorReproducibilityrandom
Status closedResolutionfixed 
Product Version0.64.0 
Target Version0.64.0Fixed in Version0.64.0 
Summary0000026: Use sizeof instead of opaque magic numbers for size param of snprintf, strncpy, etc
DescriptionPer recommendation from dlw, need to use the actual size of the buffer instead of a magic number; i.e., `snprintf (buf, sizeof (buf), ...)` instead of `snprintf(buf, 256, ...)`.

This will prevent problems should the size of the buffer change in future.

For buffer sizes defined by a macro (like `STRLEN` or `BIGSTR`), use the macro instead.
TagsNo tags attached.
M Dialect

Activities

Serena Willis

2025-04-11 17:30

administrator   ~0000016

Fixed in ssvn_job.c

Serena Willis

2025-04-12 22:31

administrator   ~0000017

Fixed.

Issue History

Date Modified Username Field Change
2025-04-09 09:25 Serena Willis New Issue
2025-04-09 09:25 Serena Willis Status new => assigned
2025-04-09 09:25 Serena Willis Assigned To => Serena Willis
2025-04-11 17:30 Serena Willis Note Added: 0000016
2025-04-12 22:31 Serena Willis Status assigned => closed
2025-04-12 22:31 Serena Willis Resolution open => fixed
2025-04-12 22:31 Serena Willis Fixed in Version => 0.64.0
2025-04-12 22:31 Serena Willis Note Added: 0000017