MantisBT - LibCSS | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0002885 | LibCSS | LibCSS | public | 2025-01-09 06:07 | 2025-01-14 13:36 |
Reporter | أحمد المحمودي | ||||
---|---|---|---|---|---|
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | POSIX | OS | Linux | OS Version | |
Fixed in CI build # | |||||
Reported in CI build # | |||||
Summary | 0002885: Fails to build when compiled with -Werror=calloc-transposed-args | ||||
Description | When build libcss with -Werror=calloc-transposed-args, I get the following error: src/select/computed.c: In function 'css__computed_style_create': src/select/computed.c:76:27: error: 'calloc' sizes specified with 'sizeof' in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 76 | s = calloc(sizeof(css_computed_style), 1); | ^~~~~~~~~~~~~~~~~~ src/select/computed.c:76:27: note: earlier argument should specify number of elements, later size of each element The attached patch fixes the issue | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | fix-calloc-args.patch (1,427) 2025-01-09 06:07 https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=751&type=bug |
Notes | ||||
|
||||
|
Issue History | |||||
Date Modified | Username | Field | Change | ||
---|---|---|---|---|---|
2025-01-09 06:07 | أحمد المحمودي | New Issue | |||
2025-01-09 06:07 | أحمد المحمودي | File Added: fix-calloc-args.patch | |||
2025-01-14 13:36 | Michael Orlitzky | Note Added: 0002469 |