View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002885 | LibCSS | LibCSS | public | 2025-01-09 06:07 | 2025-03-01 18:12 | ||||
Reporter | أحمد المحمودي | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | POSIX | OS | Linux | OS Version | |||||
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. | ||||||||
Fixed in CI build # | |||||||||
Reported in CI build # | |||||||||
Attached Files |
|
![]() |
|
![]() Michael Orlitzky (reporter) 2025-01-14 13:36 |
Hi, I think these were fixed in git already: https://git.netsurf-browser.org/libcss.git/commit/?id=0541e18b442d2f46abc0f0b09e0db950e1b657e5 https://git.netsurf-browser.org/libcss.git/commit/?id=8619d09102d6cc34d63fe87195c548852fc93bf4 |
![]() |
|||
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 | |
2025-03-01 18:12 | John-Mark Bell | Status | new => closed |
2025-03-01 18:12 | John-Mark Bell | Resolution | open => fixed |