@@ -30853,7 +30853,7 @@ wuffs_adler32__hasher__initialize(
30853
30853
wuffs_adler32__hasher*
30854
30854
wuffs_adler32__hasher__alloc(void) {
30855
30855
wuffs_adler32__hasher* x =
30856
- (wuffs_adler32__hasher*)(calloc(sizeof(wuffs_adler32__hasher), 1 ));
30856
+ (wuffs_adler32__hasher*)(calloc(1, sizeof(wuffs_adler32__hasher)));
30857
30857
if (!x) {
30858
30858
return NULL;
30859
30859
}
@@ -31459,7 +31459,7 @@ wuffs_bmp__decoder__initialize(
31459
31459
wuffs_bmp__decoder*
31460
31460
wuffs_bmp__decoder__alloc(void) {
31461
31461
wuffs_bmp__decoder* x =
31462
- (wuffs_bmp__decoder*)(calloc(sizeof(wuffs_bmp__decoder), 1 ));
31462
+ (wuffs_bmp__decoder*)(calloc(1, sizeof(wuffs_bmp__decoder)));
31463
31463
if (!x) {
31464
31464
return NULL;
31465
31465
}
@@ -34225,7 +34225,7 @@ wuffs_bzip2__decoder__initialize(
34225
34225
wuffs_bzip2__decoder*
34226
34226
wuffs_bzip2__decoder__alloc(void) {
34227
34227
wuffs_bzip2__decoder* x =
34228
- (wuffs_bzip2__decoder*)(calloc(sizeof(wuffs_bzip2__decoder), 1 ));
34228
+ (wuffs_bzip2__decoder*)(calloc(1, sizeof(wuffs_bzip2__decoder)));
34229
34229
if (!x) {
34230
34230
return NULL;
34231
34231
}
@@ -35783,7 +35783,7 @@ wuffs_cbor__decoder__initialize(
35783
35783
wuffs_cbor__decoder*
35784
35784
wuffs_cbor__decoder__alloc(void) {
35785
35785
wuffs_cbor__decoder* x =
35786
- (wuffs_cbor__decoder*)(calloc(sizeof(wuffs_cbor__decoder), 1 ));
35786
+ (wuffs_cbor__decoder*)(calloc(1, sizeof(wuffs_cbor__decoder)));
35787
35787
if (!x) {
35788
35788
return NULL;
35789
35789
}
@@ -37095,7 +37095,7 @@ wuffs_crc32__ieee_hasher__initialize(
37095
37095
wuffs_crc32__ieee_hasher*
37096
37096
wuffs_crc32__ieee_hasher__alloc(void) {
37097
37097
wuffs_crc32__ieee_hasher* x =
37098
- (wuffs_crc32__ieee_hasher*)(calloc(sizeof(wuffs_crc32__ieee_hasher), 1 ));
37098
+ (wuffs_crc32__ieee_hasher*)(calloc(1, sizeof(wuffs_crc32__ieee_hasher)));
37099
37099
if (!x) {
37100
37100
return NULL;
37101
37101
}
@@ -37930,7 +37930,7 @@ wuffs_crc64__ecma_hasher__initialize(
37930
37930
wuffs_crc64__ecma_hasher*
37931
37931
wuffs_crc64__ecma_hasher__alloc(void) {
37932
37932
wuffs_crc64__ecma_hasher* x =
37933
- (wuffs_crc64__ecma_hasher*)(calloc(sizeof(wuffs_crc64__ecma_hasher), 1 ));
37933
+ (wuffs_crc64__ecma_hasher*)(calloc(1, sizeof(wuffs_crc64__ecma_hasher)));
37934
37934
if (!x) {
37935
37935
return NULL;
37936
37936
}
@@ -38481,7 +38481,7 @@ wuffs_deflate__decoder__initialize(
38481
38481
wuffs_deflate__decoder*
38482
38482
wuffs_deflate__decoder__alloc(void) {
38483
38483
wuffs_deflate__decoder* x =
38484
- (wuffs_deflate__decoder*)(calloc(sizeof(wuffs_deflate__decoder), 1 ));
38484
+ (wuffs_deflate__decoder*)(calloc(1, sizeof(wuffs_deflate__decoder)));
38485
38485
if (!x) {
38486
38486
return NULL;
38487
38487
}
@@ -40896,7 +40896,7 @@ wuffs_gif__decoder__initialize(
40896
40896
wuffs_gif__decoder*
40897
40897
wuffs_gif__decoder__alloc(void) {
40898
40898
wuffs_gif__decoder* x =
40899
- (wuffs_gif__decoder*)(calloc(sizeof(wuffs_gif__decoder), 1 ));
40899
+ (wuffs_gif__decoder*)(calloc(1, sizeof(wuffs_gif__decoder)));
40900
40900
if (!x) {
40901
40901
return NULL;
40902
40902
}
@@ -43807,7 +43807,7 @@ wuffs_gzip__decoder__initialize(
43807
43807
wuffs_gzip__decoder*
43808
43808
wuffs_gzip__decoder__alloc(void) {
43809
43809
wuffs_gzip__decoder* x =
43810
- (wuffs_gzip__decoder*)(calloc(sizeof(wuffs_gzip__decoder), 1 ));
43810
+ (wuffs_gzip__decoder*)(calloc(1, sizeof(wuffs_gzip__decoder)));
43811
43811
if (!x) {
43812
43812
return NULL;
43813
43813
}
@@ -44913,7 +44913,7 @@ wuffs_jpeg__decoder__initialize(
44913
44913
wuffs_jpeg__decoder*
44914
44914
wuffs_jpeg__decoder__alloc(void) {
44915
44915
wuffs_jpeg__decoder* x =
44916
- (wuffs_jpeg__decoder*)(calloc(sizeof(wuffs_jpeg__decoder), 1 ));
44916
+ (wuffs_jpeg__decoder*)(calloc(1, sizeof(wuffs_jpeg__decoder)));
44917
44917
if (!x) {
44918
44918
return NULL;
44919
44919
}
@@ -51605,7 +51605,7 @@ wuffs_json__decoder__initialize(
51605
51605
wuffs_json__decoder*
51606
51606
wuffs_json__decoder__alloc(void) {
51607
51607
wuffs_json__decoder* x =
51608
- (wuffs_json__decoder*)(calloc(sizeof(wuffs_json__decoder), 1 ));
51608
+ (wuffs_json__decoder*)(calloc(1, sizeof(wuffs_json__decoder)));
51609
51609
if (!x) {
51610
51610
return NULL;
51611
51611
}
@@ -53663,7 +53663,7 @@ wuffs_lzma__decoder__initialize(
53663
53663
wuffs_lzma__decoder*
53664
53664
wuffs_lzma__decoder__alloc(void) {
53665
53665
wuffs_lzma__decoder* x =
53666
- (wuffs_lzma__decoder*)(calloc(sizeof(wuffs_lzma__decoder), 1 ));
53666
+ (wuffs_lzma__decoder*)(calloc(1, sizeof(wuffs_lzma__decoder)));
53667
53667
if (!x) {
53668
53668
return NULL;
53669
53669
}
@@ -56854,7 +56854,7 @@ wuffs_lzip__decoder__initialize(
56854
56854
wuffs_lzip__decoder*
56855
56855
wuffs_lzip__decoder__alloc(void) {
56856
56856
wuffs_lzip__decoder* x =
56857
- (wuffs_lzip__decoder*)(calloc(sizeof(wuffs_lzip__decoder), 1 ));
56857
+ (wuffs_lzip__decoder*)(calloc(1, sizeof(wuffs_lzip__decoder)));
56858
56858
if (!x) {
56859
56859
return NULL;
56860
56860
}
@@ -57403,7 +57403,7 @@ wuffs_lzw__decoder__initialize(
57403
57403
wuffs_lzw__decoder*
57404
57404
wuffs_lzw__decoder__alloc(void) {
57405
57405
wuffs_lzw__decoder* x =
57406
- (wuffs_lzw__decoder*)(calloc(sizeof(wuffs_lzw__decoder), 1 ));
57406
+ (wuffs_lzw__decoder*)(calloc(1, sizeof(wuffs_lzw__decoder)));
57407
57407
if (!x) {
57408
57408
return NULL;
57409
57409
}
@@ -58019,7 +58019,7 @@ wuffs_netpbm__decoder__initialize(
58019
58019
wuffs_netpbm__decoder*
58020
58020
wuffs_netpbm__decoder__alloc(void) {
58021
58021
wuffs_netpbm__decoder* x =
58022
- (wuffs_netpbm__decoder*)(calloc(sizeof(wuffs_netpbm__decoder), 1 ));
58022
+ (wuffs_netpbm__decoder*)(calloc(1, sizeof(wuffs_netpbm__decoder)));
58023
58023
if (!x) {
58024
58024
return NULL;
58025
58025
}
@@ -59159,7 +59159,7 @@ wuffs_nie__decoder__initialize(
59159
59159
wuffs_nie__decoder*
59160
59160
wuffs_nie__decoder__alloc(void) {
59161
59161
wuffs_nie__decoder* x =
59162
- (wuffs_nie__decoder*)(calloc(sizeof(wuffs_nie__decoder), 1 ));
59162
+ (wuffs_nie__decoder*)(calloc(1, sizeof(wuffs_nie__decoder)));
59163
59163
if (!x) {
59164
59164
return NULL;
59165
59165
}
@@ -60203,7 +60203,7 @@ wuffs_zlib__decoder__initialize(
60203
60203
wuffs_zlib__decoder*
60204
60204
wuffs_zlib__decoder__alloc(void) {
60205
60205
wuffs_zlib__decoder* x =
60206
- (wuffs_zlib__decoder*)(calloc(sizeof(wuffs_zlib__decoder), 1 ));
60206
+ (wuffs_zlib__decoder*)(calloc(1, sizeof(wuffs_zlib__decoder)));
60207
60207
if (!x) {
60208
60208
return NULL;
60209
60209
}
@@ -61171,7 +61171,7 @@ wuffs_png__decoder__initialize(
61171
61171
wuffs_png__decoder*
61172
61172
wuffs_png__decoder__alloc(void) {
61173
61173
wuffs_png__decoder* x =
61174
- (wuffs_png__decoder*)(calloc(sizeof(wuffs_png__decoder), 1 ));
61174
+ (wuffs_png__decoder*)(calloc(1, sizeof(wuffs_png__decoder)));
61175
61175
if (!x) {
61176
61176
return NULL;
61177
61177
}
@@ -67321,7 +67321,7 @@ wuffs_qoi__decoder__initialize(
67321
67321
wuffs_qoi__decoder*
67322
67322
wuffs_qoi__decoder__alloc(void) {
67323
67323
wuffs_qoi__decoder* x =
67324
- (wuffs_qoi__decoder*)(calloc(sizeof(wuffs_qoi__decoder), 1 ));
67324
+ (wuffs_qoi__decoder*)(calloc(1, sizeof(wuffs_qoi__decoder)));
67325
67325
if (!x) {
67326
67326
return NULL;
67327
67327
}
@@ -68558,7 +68558,7 @@ wuffs_sha256__hasher__initialize(
68558
68558
wuffs_sha256__hasher*
68559
68559
wuffs_sha256__hasher__alloc(void) {
68560
68560
wuffs_sha256__hasher* x =
68561
- (wuffs_sha256__hasher*)(calloc(sizeof(wuffs_sha256__hasher), 1 ));
68561
+ (wuffs_sha256__hasher*)(calloc(1, sizeof(wuffs_sha256__hasher)));
68562
68562
if (!x) {
68563
68563
return NULL;
68564
68564
}
@@ -69191,7 +69191,7 @@ wuffs_tga__decoder__initialize(
69191
69191
wuffs_tga__decoder*
69192
69192
wuffs_tga__decoder__alloc(void) {
69193
69193
wuffs_tga__decoder* x =
69194
- (wuffs_tga__decoder*)(calloc(sizeof(wuffs_tga__decoder), 1 ));
69194
+ (wuffs_tga__decoder*)(calloc(1, sizeof(wuffs_tga__decoder)));
69195
69195
if (!x) {
69196
69196
return NULL;
69197
69197
}
@@ -70560,7 +70560,7 @@ wuffs_vp8__placeholder__initialize(
70560
70560
wuffs_vp8__placeholder*
70561
70561
wuffs_vp8__placeholder__alloc(void) {
70562
70562
wuffs_vp8__placeholder* x =
70563
- (wuffs_vp8__placeholder*)(calloc(sizeof(wuffs_vp8__placeholder), 1 ));
70563
+ (wuffs_vp8__placeholder*)(calloc(1, sizeof(wuffs_vp8__placeholder)));
70564
70564
if (!x) {
70565
70565
return NULL;
70566
70566
}
@@ -70708,7 +70708,7 @@ wuffs_wbmp__decoder__initialize(
70708
70708
wuffs_wbmp__decoder*
70709
70709
wuffs_wbmp__decoder__alloc(void) {
70710
70710
wuffs_wbmp__decoder* x =
70711
- (wuffs_wbmp__decoder*)(calloc(sizeof(wuffs_wbmp__decoder), 1 ));
70711
+ (wuffs_wbmp__decoder*)(calloc(1, sizeof(wuffs_wbmp__decoder)));
70712
70712
if (!x) {
70713
70713
return NULL;
70714
70714
}
@@ -71843,7 +71843,7 @@ wuffs_webp__decoder__initialize(
71843
71843
wuffs_webp__decoder*
71844
71844
wuffs_webp__decoder__alloc(void) {
71845
71845
wuffs_webp__decoder* x =
71846
- (wuffs_webp__decoder*)(calloc(sizeof(wuffs_webp__decoder), 1 ));
71846
+ (wuffs_webp__decoder*)(calloc(1, sizeof(wuffs_webp__decoder)));
71847
71847
if (!x) {
71848
71848
return NULL;
71849
71849
}
@@ -75578,7 +75578,7 @@ wuffs_xxhash32__hasher__initialize(
75578
75578
wuffs_xxhash32__hasher*
75579
75579
wuffs_xxhash32__hasher__alloc(void) {
75580
75580
wuffs_xxhash32__hasher* x =
75581
- (wuffs_xxhash32__hasher*)(calloc(sizeof(wuffs_xxhash32__hasher), 1 ));
75581
+ (wuffs_xxhash32__hasher*)(calloc(1, sizeof(wuffs_xxhash32__hasher)));
75582
75582
if (!x) {
75583
75583
return NULL;
75584
75584
}
@@ -75991,7 +75991,7 @@ wuffs_xxhash64__hasher__initialize(
75991
75991
wuffs_xxhash64__hasher*
75992
75992
wuffs_xxhash64__hasher__alloc(void) {
75993
75993
wuffs_xxhash64__hasher* x =
75994
- (wuffs_xxhash64__hasher*)(calloc(sizeof(wuffs_xxhash64__hasher), 1 ));
75994
+ (wuffs_xxhash64__hasher*)(calloc(1, sizeof(wuffs_xxhash64__hasher)));
75995
75995
if (!x) {
75996
75996
return NULL;
75997
75997
}
@@ -76632,7 +76632,7 @@ wuffs_xz__decoder__initialize(
76632
76632
wuffs_xz__decoder*
76633
76633
wuffs_xz__decoder__alloc(void) {
76634
76634
wuffs_xz__decoder* x =
76635
- (wuffs_xz__decoder*)(calloc(sizeof(wuffs_xz__decoder), 1 ));
76635
+ (wuffs_xz__decoder*)(calloc(1, sizeof(wuffs_xz__decoder)));
76636
76636
if (!x) {
76637
76637
return NULL;
76638
76638
}
@@ -79659,7 +79659,7 @@ DecodeImageCallbacks::AllocPixbuf(const wuffs_base__image_config& image_config,
79659
79659
return AllocPixbufResult(DecodeImage_UnsupportedPixelConfiguration);
79660
79660
}
79661
79661
void* ptr =
79662
- allow_uninitialized_memory ? malloc((size_t)len) : calloc((size_t)len, 1 );
79662
+ allow_uninitialized_memory ? malloc((size_t)len) : calloc(1, (size_t)len);
79663
79663
if (!ptr) {
79664
79664
return AllocPixbufResult(DecodeImage_OutOfMemory);
79665
79665
}
@@ -79684,7 +79684,7 @@ DecodeImageCallbacks::AllocWorkbuf(wuffs_base__range_ii_u64 len_range,
79684
79684
return AllocWorkbufResult(DecodeImage_OutOfMemory);
79685
79685
}
79686
79686
void* ptr =
79687
- allow_uninitialized_memory ? malloc((size_t)len) : calloc((size_t)len, 1 );
79687
+ allow_uninitialized_memory ? malloc((size_t)len) : calloc(1, (size_t)len);
79688
79688
if (!ptr) {
79689
79689
return AllocWorkbufResult(DecodeImage_OutOfMemory);
79690
79690
}
0 commit comments