View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000026 | freem | Memory Safety and Security | public | 2025-04-09 09:25 | 2025-04-12 22:31 |
Reporter | Serena Willis | Assigned To | Serena Willis | ||
Priority | high | Severity | major | Reproducibility | random |
Status | closed | Resolution | fixed | ||
Product Version | 0.64.0 | ||||
Target Version | 0.64.0 | Fixed in Version | 0.64.0 | ||
Summary | 0000026: Use sizeof instead of opaque magic numbers for size param of snprintf, strncpy, etc | ||||
Description | Per 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. | ||||
Tags | No tags attached. | ||||
M Dialect | |||||
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 |