@@ -81,15 +81,15 @@ extern "C" {
81
81
// each major.minor branch, the commit count should increase monotonically.
82
82
//
83
83
// WUFFS_VERSION was overridden by "wuffs gen -version" based on revision
84
- // a07eb7704bdb65ea131495c866a4ef3d2c4e7b22 committed on 2024-08-11 .
84
+ // 5d69840f8e7ca481551b02c7e8d4c5fb69521bb9 committed on 2024-08-12 .
85
85
#define WUFFS_VERSION 0x000040000
86
86
#define WUFFS_VERSION_MAJOR 0
87
87
#define WUFFS_VERSION_MINOR 4
88
88
#define WUFFS_VERSION_PATCH 0
89
- #define WUFFS_VERSION_PRE_RELEASE_LABEL "alpha.7 "
90
- #define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3793
91
- #define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20240811
92
- #define WUFFS_VERSION_STRING "0.4.0-alpha.7+3793.20240811 "
89
+ #define WUFFS_VERSION_PRE_RELEASE_LABEL "alpha.8 "
90
+ #define WUFFS_VERSION_BUILD_METADATA_COMMIT_COUNT 3796
91
+ #define WUFFS_VERSION_BUILD_METADATA_COMMIT_DATE 20240812
92
+ #define WUFFS_VERSION_STRING "0.4.0-alpha.8+3796.20240812 "
93
93
94
94
// ---------------- Private Implementation Macros Re-definition Check
95
95
@@ -4665,7 +4665,7 @@ wuffs_base__pixel_config__set(wuffs_base__pixel_config* c,
4665
4665
}
4666
4666
if (pixfmt_repr) {
4667
4667
do {
4668
- #if SIZE_MAX < UINT64_MAX
4668
+ #if SIZE_MAX < 0xFFFFFFFFFFFFFFFFull
4669
4669
uint64_t wh = ((uint64_t)width) * ((uint64_t)height);
4670
4670
// TODO: handle things other than 1 byte per pixel.
4671
4671
if (wh > ((uint64_t)SIZE_MAX)) {
@@ -30854,7 +30854,7 @@ wuffs_adler32__hasher__initialize(
30854
30854
wuffs_adler32__hasher*
30855
30855
wuffs_adler32__hasher__alloc(void) {
30856
30856
wuffs_adler32__hasher* x =
30857
- (wuffs_adler32__hasher*)(calloc(sizeof(wuffs_adler32__hasher), 1 ));
30857
+ (wuffs_adler32__hasher*)(calloc(1, sizeof(wuffs_adler32__hasher)));
30858
30858
if (!x) {
30859
30859
return NULL;
30860
30860
}
@@ -31460,7 +31460,7 @@ wuffs_bmp__decoder__initialize(
31460
31460
wuffs_bmp__decoder*
31461
31461
wuffs_bmp__decoder__alloc(void) {
31462
31462
wuffs_bmp__decoder* x =
31463
- (wuffs_bmp__decoder*)(calloc(sizeof(wuffs_bmp__decoder), 1 ));
31463
+ (wuffs_bmp__decoder*)(calloc(1, sizeof(wuffs_bmp__decoder)));
31464
31464
if (!x) {
31465
31465
return NULL;
31466
31466
}
@@ -34226,7 +34226,7 @@ wuffs_bzip2__decoder__initialize(
34226
34226
wuffs_bzip2__decoder*
34227
34227
wuffs_bzip2__decoder__alloc(void) {
34228
34228
wuffs_bzip2__decoder* x =
34229
- (wuffs_bzip2__decoder*)(calloc(sizeof(wuffs_bzip2__decoder), 1 ));
34229
+ (wuffs_bzip2__decoder*)(calloc(1, sizeof(wuffs_bzip2__decoder)));
34230
34230
if (!x) {
34231
34231
return NULL;
34232
34232
}
@@ -35784,7 +35784,7 @@ wuffs_cbor__decoder__initialize(
35784
35784
wuffs_cbor__decoder*
35785
35785
wuffs_cbor__decoder__alloc(void) {
35786
35786
wuffs_cbor__decoder* x =
35787
- (wuffs_cbor__decoder*)(calloc(sizeof(wuffs_cbor__decoder), 1 ));
35787
+ (wuffs_cbor__decoder*)(calloc(1, sizeof(wuffs_cbor__decoder)));
35788
35788
if (!x) {
35789
35789
return NULL;
35790
35790
}
@@ -37096,7 +37096,7 @@ wuffs_crc32__ieee_hasher__initialize(
37096
37096
wuffs_crc32__ieee_hasher*
37097
37097
wuffs_crc32__ieee_hasher__alloc(void) {
37098
37098
wuffs_crc32__ieee_hasher* x =
37099
- (wuffs_crc32__ieee_hasher*)(calloc(sizeof(wuffs_crc32__ieee_hasher), 1 ));
37099
+ (wuffs_crc32__ieee_hasher*)(calloc(1, sizeof(wuffs_crc32__ieee_hasher)));
37100
37100
if (!x) {
37101
37101
return NULL;
37102
37102
}
@@ -37931,7 +37931,7 @@ wuffs_crc64__ecma_hasher__initialize(
37931
37931
wuffs_crc64__ecma_hasher*
37932
37932
wuffs_crc64__ecma_hasher__alloc(void) {
37933
37933
wuffs_crc64__ecma_hasher* x =
37934
- (wuffs_crc64__ecma_hasher*)(calloc(sizeof(wuffs_crc64__ecma_hasher), 1 ));
37934
+ (wuffs_crc64__ecma_hasher*)(calloc(1, sizeof(wuffs_crc64__ecma_hasher)));
37935
37935
if (!x) {
37936
37936
return NULL;
37937
37937
}
@@ -38482,7 +38482,7 @@ wuffs_deflate__decoder__initialize(
38482
38482
wuffs_deflate__decoder*
38483
38483
wuffs_deflate__decoder__alloc(void) {
38484
38484
wuffs_deflate__decoder* x =
38485
- (wuffs_deflate__decoder*)(calloc(sizeof(wuffs_deflate__decoder), 1 ));
38485
+ (wuffs_deflate__decoder*)(calloc(1, sizeof(wuffs_deflate__decoder)));
38486
38486
if (!x) {
38487
38487
return NULL;
38488
38488
}
@@ -40897,7 +40897,7 @@ wuffs_gif__decoder__initialize(
40897
40897
wuffs_gif__decoder*
40898
40898
wuffs_gif__decoder__alloc(void) {
40899
40899
wuffs_gif__decoder* x =
40900
- (wuffs_gif__decoder*)(calloc(sizeof(wuffs_gif__decoder), 1 ));
40900
+ (wuffs_gif__decoder*)(calloc(1, sizeof(wuffs_gif__decoder)));
40901
40901
if (!x) {
40902
40902
return NULL;
40903
40903
}
@@ -43808,7 +43808,7 @@ wuffs_gzip__decoder__initialize(
43808
43808
wuffs_gzip__decoder*
43809
43809
wuffs_gzip__decoder__alloc(void) {
43810
43810
wuffs_gzip__decoder* x =
43811
- (wuffs_gzip__decoder*)(calloc(sizeof(wuffs_gzip__decoder), 1 ));
43811
+ (wuffs_gzip__decoder*)(calloc(1, sizeof(wuffs_gzip__decoder)));
43812
43812
if (!x) {
43813
43813
return NULL;
43814
43814
}
@@ -44914,7 +44914,7 @@ wuffs_jpeg__decoder__initialize(
44914
44914
wuffs_jpeg__decoder*
44915
44915
wuffs_jpeg__decoder__alloc(void) {
44916
44916
wuffs_jpeg__decoder* x =
44917
- (wuffs_jpeg__decoder*)(calloc(sizeof(wuffs_jpeg__decoder), 1 ));
44917
+ (wuffs_jpeg__decoder*)(calloc(1, sizeof(wuffs_jpeg__decoder)));
44918
44918
if (!x) {
44919
44919
return NULL;
44920
44920
}
@@ -51606,7 +51606,7 @@ wuffs_json__decoder__initialize(
51606
51606
wuffs_json__decoder*
51607
51607
wuffs_json__decoder__alloc(void) {
51608
51608
wuffs_json__decoder* x =
51609
- (wuffs_json__decoder*)(calloc(sizeof(wuffs_json__decoder), 1 ));
51609
+ (wuffs_json__decoder*)(calloc(1, sizeof(wuffs_json__decoder)));
51610
51610
if (!x) {
51611
51611
return NULL;
51612
51612
}
@@ -53664,7 +53664,7 @@ wuffs_lzma__decoder__initialize(
53664
53664
wuffs_lzma__decoder*
53665
53665
wuffs_lzma__decoder__alloc(void) {
53666
53666
wuffs_lzma__decoder* x =
53667
- (wuffs_lzma__decoder*)(calloc(sizeof(wuffs_lzma__decoder), 1 ));
53667
+ (wuffs_lzma__decoder*)(calloc(1, sizeof(wuffs_lzma__decoder)));
53668
53668
if (!x) {
53669
53669
return NULL;
53670
53670
}
@@ -56855,7 +56855,7 @@ wuffs_lzip__decoder__initialize(
56855
56855
wuffs_lzip__decoder*
56856
56856
wuffs_lzip__decoder__alloc(void) {
56857
56857
wuffs_lzip__decoder* x =
56858
- (wuffs_lzip__decoder*)(calloc(sizeof(wuffs_lzip__decoder), 1 ));
56858
+ (wuffs_lzip__decoder*)(calloc(1, sizeof(wuffs_lzip__decoder)));
56859
56859
if (!x) {
56860
56860
return NULL;
56861
56861
}
@@ -57404,7 +57404,7 @@ wuffs_lzw__decoder__initialize(
57404
57404
wuffs_lzw__decoder*
57405
57405
wuffs_lzw__decoder__alloc(void) {
57406
57406
wuffs_lzw__decoder* x =
57407
- (wuffs_lzw__decoder*)(calloc(sizeof(wuffs_lzw__decoder), 1 ));
57407
+ (wuffs_lzw__decoder*)(calloc(1, sizeof(wuffs_lzw__decoder)));
57408
57408
if (!x) {
57409
57409
return NULL;
57410
57410
}
@@ -58020,7 +58020,7 @@ wuffs_netpbm__decoder__initialize(
58020
58020
wuffs_netpbm__decoder*
58021
58021
wuffs_netpbm__decoder__alloc(void) {
58022
58022
wuffs_netpbm__decoder* x =
58023
- (wuffs_netpbm__decoder*)(calloc(sizeof(wuffs_netpbm__decoder), 1 ));
58023
+ (wuffs_netpbm__decoder*)(calloc(1, sizeof(wuffs_netpbm__decoder)));
58024
58024
if (!x) {
58025
58025
return NULL;
58026
58026
}
@@ -59160,7 +59160,7 @@ wuffs_nie__decoder__initialize(
59160
59160
wuffs_nie__decoder*
59161
59161
wuffs_nie__decoder__alloc(void) {
59162
59162
wuffs_nie__decoder* x =
59163
- (wuffs_nie__decoder*)(calloc(sizeof(wuffs_nie__decoder), 1 ));
59163
+ (wuffs_nie__decoder*)(calloc(1, sizeof(wuffs_nie__decoder)));
59164
59164
if (!x) {
59165
59165
return NULL;
59166
59166
}
@@ -60204,7 +60204,7 @@ wuffs_zlib__decoder__initialize(
60204
60204
wuffs_zlib__decoder*
60205
60205
wuffs_zlib__decoder__alloc(void) {
60206
60206
wuffs_zlib__decoder* x =
60207
- (wuffs_zlib__decoder*)(calloc(sizeof(wuffs_zlib__decoder), 1 ));
60207
+ (wuffs_zlib__decoder*)(calloc(1, sizeof(wuffs_zlib__decoder)));
60208
60208
if (!x) {
60209
60209
return NULL;
60210
60210
}
@@ -61172,7 +61172,7 @@ wuffs_png__decoder__initialize(
61172
61172
wuffs_png__decoder*
61173
61173
wuffs_png__decoder__alloc(void) {
61174
61174
wuffs_png__decoder* x =
61175
- (wuffs_png__decoder*)(calloc(sizeof(wuffs_png__decoder), 1 ));
61175
+ (wuffs_png__decoder*)(calloc(1, sizeof(wuffs_png__decoder)));
61176
61176
if (!x) {
61177
61177
return NULL;
61178
61178
}
@@ -67322,7 +67322,7 @@ wuffs_qoi__decoder__initialize(
67322
67322
wuffs_qoi__decoder*
67323
67323
wuffs_qoi__decoder__alloc(void) {
67324
67324
wuffs_qoi__decoder* x =
67325
- (wuffs_qoi__decoder*)(calloc(sizeof(wuffs_qoi__decoder), 1 ));
67325
+ (wuffs_qoi__decoder*)(calloc(1, sizeof(wuffs_qoi__decoder)));
67326
67326
if (!x) {
67327
67327
return NULL;
67328
67328
}
@@ -68559,7 +68559,7 @@ wuffs_sha256__hasher__initialize(
68559
68559
wuffs_sha256__hasher*
68560
68560
wuffs_sha256__hasher__alloc(void) {
68561
68561
wuffs_sha256__hasher* x =
68562
- (wuffs_sha256__hasher*)(calloc(sizeof(wuffs_sha256__hasher), 1 ));
68562
+ (wuffs_sha256__hasher*)(calloc(1, sizeof(wuffs_sha256__hasher)));
68563
68563
if (!x) {
68564
68564
return NULL;
68565
68565
}
@@ -69192,7 +69192,7 @@ wuffs_tga__decoder__initialize(
69192
69192
wuffs_tga__decoder*
69193
69193
wuffs_tga__decoder__alloc(void) {
69194
69194
wuffs_tga__decoder* x =
69195
- (wuffs_tga__decoder*)(calloc(sizeof(wuffs_tga__decoder), 1 ));
69195
+ (wuffs_tga__decoder*)(calloc(1, sizeof(wuffs_tga__decoder)));
69196
69196
if (!x) {
69197
69197
return NULL;
69198
69198
}
@@ -70561,7 +70561,7 @@ wuffs_vp8__placeholder__initialize(
70561
70561
wuffs_vp8__placeholder*
70562
70562
wuffs_vp8__placeholder__alloc(void) {
70563
70563
wuffs_vp8__placeholder* x =
70564
- (wuffs_vp8__placeholder*)(calloc(sizeof(wuffs_vp8__placeholder), 1 ));
70564
+ (wuffs_vp8__placeholder*)(calloc(1, sizeof(wuffs_vp8__placeholder)));
70565
70565
if (!x) {
70566
70566
return NULL;
70567
70567
}
@@ -70709,7 +70709,7 @@ wuffs_wbmp__decoder__initialize(
70709
70709
wuffs_wbmp__decoder*
70710
70710
wuffs_wbmp__decoder__alloc(void) {
70711
70711
wuffs_wbmp__decoder* x =
70712
- (wuffs_wbmp__decoder*)(calloc(sizeof(wuffs_wbmp__decoder), 1 ));
70712
+ (wuffs_wbmp__decoder*)(calloc(1, sizeof(wuffs_wbmp__decoder)));
70713
70713
if (!x) {
70714
70714
return NULL;
70715
70715
}
@@ -71844,7 +71844,7 @@ wuffs_webp__decoder__initialize(
71844
71844
wuffs_webp__decoder*
71845
71845
wuffs_webp__decoder__alloc(void) {
71846
71846
wuffs_webp__decoder* x =
71847
- (wuffs_webp__decoder*)(calloc(sizeof(wuffs_webp__decoder), 1 ));
71847
+ (wuffs_webp__decoder*)(calloc(1, sizeof(wuffs_webp__decoder)));
71848
71848
if (!x) {
71849
71849
return NULL;
71850
71850
}
@@ -75579,7 +75579,7 @@ wuffs_xxhash32__hasher__initialize(
75579
75579
wuffs_xxhash32__hasher*
75580
75580
wuffs_xxhash32__hasher__alloc(void) {
75581
75581
wuffs_xxhash32__hasher* x =
75582
- (wuffs_xxhash32__hasher*)(calloc(sizeof(wuffs_xxhash32__hasher), 1 ));
75582
+ (wuffs_xxhash32__hasher*)(calloc(1, sizeof(wuffs_xxhash32__hasher)));
75583
75583
if (!x) {
75584
75584
return NULL;
75585
75585
}
@@ -75992,7 +75992,7 @@ wuffs_xxhash64__hasher__initialize(
75992
75992
wuffs_xxhash64__hasher*
75993
75993
wuffs_xxhash64__hasher__alloc(void) {
75994
75994
wuffs_xxhash64__hasher* x =
75995
- (wuffs_xxhash64__hasher*)(calloc(sizeof(wuffs_xxhash64__hasher), 1 ));
75995
+ (wuffs_xxhash64__hasher*)(calloc(1, sizeof(wuffs_xxhash64__hasher)));
75996
75996
if (!x) {
75997
75997
return NULL;
75998
75998
}
@@ -76633,7 +76633,7 @@ wuffs_xz__decoder__initialize(
76633
76633
wuffs_xz__decoder*
76634
76634
wuffs_xz__decoder__alloc(void) {
76635
76635
wuffs_xz__decoder* x =
76636
- (wuffs_xz__decoder*)(calloc(sizeof(wuffs_xz__decoder), 1 ));
76636
+ (wuffs_xz__decoder*)(calloc(1, sizeof(wuffs_xz__decoder)));
76637
76637
if (!x) {
76638
76638
return NULL;
76639
76639
}
@@ -79660,7 +79660,7 @@ DecodeImageCallbacks::AllocPixbuf(const wuffs_base__image_config& image_config,
79660
79660
return AllocPixbufResult(DecodeImage_UnsupportedPixelConfiguration);
79661
79661
}
79662
79662
void* ptr =
79663
- allow_uninitialized_memory ? malloc((size_t)len) : calloc((size_t)len, 1 );
79663
+ allow_uninitialized_memory ? malloc((size_t)len) : calloc(1, (size_t)len);
79664
79664
if (!ptr) {
79665
79665
return AllocPixbufResult(DecodeImage_OutOfMemory);
79666
79666
}
@@ -79685,7 +79685,7 @@ DecodeImageCallbacks::AllocWorkbuf(wuffs_base__range_ii_u64 len_range,
79685
79685
return AllocWorkbufResult(DecodeImage_OutOfMemory);
79686
79686
}
79687
79687
void* ptr =
79688
- allow_uninitialized_memory ? malloc((size_t)len) : calloc((size_t)len, 1 );
79688
+ allow_uninitialized_memory ? malloc((size_t)len) : calloc(1, (size_t)len);
79689
79689
if (!ptr) {
79690
79690
return AllocWorkbufResult(DecodeImage_OutOfMemory);
79691
79691
}
0 commit comments