Skip to content

Commit beaf456

Browse files
committed
release: wuffs gen -version=0.4.0-alpha.8
1 parent 5d69840 commit beaf456

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

release/c/wuffs-v0.4.c

+35-35
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ extern "C" {
8181
// each major.minor branch, the commit count should increase monotonically.
8282
//
8383
// 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.
8585
#define WUFFS_VERSION 0x000040000
8686
#define WUFFS_VERSION_MAJOR 0
8787
#define WUFFS_VERSION_MINOR 4
8888
#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"
9393

9494
// ---------------- Private Implementation Macros Re-definition Check
9595

@@ -4665,7 +4665,7 @@ wuffs_base__pixel_config__set(wuffs_base__pixel_config* c,
46654665
}
46664666
if (pixfmt_repr) {
46674667
do {
4668-
#if SIZE_MAX < UINT64_MAX
4668+
#if SIZE_MAX < 0xFFFFFFFFFFFFFFFFull
46694669
uint64_t wh = ((uint64_t)width) * ((uint64_t)height);
46704670
// TODO: handle things other than 1 byte per pixel.
46714671
if (wh > ((uint64_t)SIZE_MAX)) {
@@ -30854,7 +30854,7 @@ wuffs_adler32__hasher__initialize(
3085430854
wuffs_adler32__hasher*
3085530855
wuffs_adler32__hasher__alloc(void) {
3085630856
wuffs_adler32__hasher* x =
30857-
(wuffs_adler32__hasher*)(calloc(sizeof(wuffs_adler32__hasher), 1));
30857+
(wuffs_adler32__hasher*)(calloc(1, sizeof(wuffs_adler32__hasher)));
3085830858
if (!x) {
3085930859
return NULL;
3086030860
}
@@ -31460,7 +31460,7 @@ wuffs_bmp__decoder__initialize(
3146031460
wuffs_bmp__decoder*
3146131461
wuffs_bmp__decoder__alloc(void) {
3146231462
wuffs_bmp__decoder* x =
31463-
(wuffs_bmp__decoder*)(calloc(sizeof(wuffs_bmp__decoder), 1));
31463+
(wuffs_bmp__decoder*)(calloc(1, sizeof(wuffs_bmp__decoder)));
3146431464
if (!x) {
3146531465
return NULL;
3146631466
}
@@ -34226,7 +34226,7 @@ wuffs_bzip2__decoder__initialize(
3422634226
wuffs_bzip2__decoder*
3422734227
wuffs_bzip2__decoder__alloc(void) {
3422834228
wuffs_bzip2__decoder* x =
34229-
(wuffs_bzip2__decoder*)(calloc(sizeof(wuffs_bzip2__decoder), 1));
34229+
(wuffs_bzip2__decoder*)(calloc(1, sizeof(wuffs_bzip2__decoder)));
3423034230
if (!x) {
3423134231
return NULL;
3423234232
}
@@ -35784,7 +35784,7 @@ wuffs_cbor__decoder__initialize(
3578435784
wuffs_cbor__decoder*
3578535785
wuffs_cbor__decoder__alloc(void) {
3578635786
wuffs_cbor__decoder* x =
35787-
(wuffs_cbor__decoder*)(calloc(sizeof(wuffs_cbor__decoder), 1));
35787+
(wuffs_cbor__decoder*)(calloc(1, sizeof(wuffs_cbor__decoder)));
3578835788
if (!x) {
3578935789
return NULL;
3579035790
}
@@ -37096,7 +37096,7 @@ wuffs_crc32__ieee_hasher__initialize(
3709637096
wuffs_crc32__ieee_hasher*
3709737097
wuffs_crc32__ieee_hasher__alloc(void) {
3709837098
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)));
3710037100
if (!x) {
3710137101
return NULL;
3710237102
}
@@ -37931,7 +37931,7 @@ wuffs_crc64__ecma_hasher__initialize(
3793137931
wuffs_crc64__ecma_hasher*
3793237932
wuffs_crc64__ecma_hasher__alloc(void) {
3793337933
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)));
3793537935
if (!x) {
3793637936
return NULL;
3793737937
}
@@ -38482,7 +38482,7 @@ wuffs_deflate__decoder__initialize(
3848238482
wuffs_deflate__decoder*
3848338483
wuffs_deflate__decoder__alloc(void) {
3848438484
wuffs_deflate__decoder* x =
38485-
(wuffs_deflate__decoder*)(calloc(sizeof(wuffs_deflate__decoder), 1));
38485+
(wuffs_deflate__decoder*)(calloc(1, sizeof(wuffs_deflate__decoder)));
3848638486
if (!x) {
3848738487
return NULL;
3848838488
}
@@ -40897,7 +40897,7 @@ wuffs_gif__decoder__initialize(
4089740897
wuffs_gif__decoder*
4089840898
wuffs_gif__decoder__alloc(void) {
4089940899
wuffs_gif__decoder* x =
40900-
(wuffs_gif__decoder*)(calloc(sizeof(wuffs_gif__decoder), 1));
40900+
(wuffs_gif__decoder*)(calloc(1, sizeof(wuffs_gif__decoder)));
4090140901
if (!x) {
4090240902
return NULL;
4090340903
}
@@ -43808,7 +43808,7 @@ wuffs_gzip__decoder__initialize(
4380843808
wuffs_gzip__decoder*
4380943809
wuffs_gzip__decoder__alloc(void) {
4381043810
wuffs_gzip__decoder* x =
43811-
(wuffs_gzip__decoder*)(calloc(sizeof(wuffs_gzip__decoder), 1));
43811+
(wuffs_gzip__decoder*)(calloc(1, sizeof(wuffs_gzip__decoder)));
4381243812
if (!x) {
4381343813
return NULL;
4381443814
}
@@ -44914,7 +44914,7 @@ wuffs_jpeg__decoder__initialize(
4491444914
wuffs_jpeg__decoder*
4491544915
wuffs_jpeg__decoder__alloc(void) {
4491644916
wuffs_jpeg__decoder* x =
44917-
(wuffs_jpeg__decoder*)(calloc(sizeof(wuffs_jpeg__decoder), 1));
44917+
(wuffs_jpeg__decoder*)(calloc(1, sizeof(wuffs_jpeg__decoder)));
4491844918
if (!x) {
4491944919
return NULL;
4492044920
}
@@ -51606,7 +51606,7 @@ wuffs_json__decoder__initialize(
5160651606
wuffs_json__decoder*
5160751607
wuffs_json__decoder__alloc(void) {
5160851608
wuffs_json__decoder* x =
51609-
(wuffs_json__decoder*)(calloc(sizeof(wuffs_json__decoder), 1));
51609+
(wuffs_json__decoder*)(calloc(1, sizeof(wuffs_json__decoder)));
5161051610
if (!x) {
5161151611
return NULL;
5161251612
}
@@ -53664,7 +53664,7 @@ wuffs_lzma__decoder__initialize(
5366453664
wuffs_lzma__decoder*
5366553665
wuffs_lzma__decoder__alloc(void) {
5366653666
wuffs_lzma__decoder* x =
53667-
(wuffs_lzma__decoder*)(calloc(sizeof(wuffs_lzma__decoder), 1));
53667+
(wuffs_lzma__decoder*)(calloc(1, sizeof(wuffs_lzma__decoder)));
5366853668
if (!x) {
5366953669
return NULL;
5367053670
}
@@ -56855,7 +56855,7 @@ wuffs_lzip__decoder__initialize(
5685556855
wuffs_lzip__decoder*
5685656856
wuffs_lzip__decoder__alloc(void) {
5685756857
wuffs_lzip__decoder* x =
56858-
(wuffs_lzip__decoder*)(calloc(sizeof(wuffs_lzip__decoder), 1));
56858+
(wuffs_lzip__decoder*)(calloc(1, sizeof(wuffs_lzip__decoder)));
5685956859
if (!x) {
5686056860
return NULL;
5686156861
}
@@ -57404,7 +57404,7 @@ wuffs_lzw__decoder__initialize(
5740457404
wuffs_lzw__decoder*
5740557405
wuffs_lzw__decoder__alloc(void) {
5740657406
wuffs_lzw__decoder* x =
57407-
(wuffs_lzw__decoder*)(calloc(sizeof(wuffs_lzw__decoder), 1));
57407+
(wuffs_lzw__decoder*)(calloc(1, sizeof(wuffs_lzw__decoder)));
5740857408
if (!x) {
5740957409
return NULL;
5741057410
}
@@ -58020,7 +58020,7 @@ wuffs_netpbm__decoder__initialize(
5802058020
wuffs_netpbm__decoder*
5802158021
wuffs_netpbm__decoder__alloc(void) {
5802258022
wuffs_netpbm__decoder* x =
58023-
(wuffs_netpbm__decoder*)(calloc(sizeof(wuffs_netpbm__decoder), 1));
58023+
(wuffs_netpbm__decoder*)(calloc(1, sizeof(wuffs_netpbm__decoder)));
5802458024
if (!x) {
5802558025
return NULL;
5802658026
}
@@ -59160,7 +59160,7 @@ wuffs_nie__decoder__initialize(
5916059160
wuffs_nie__decoder*
5916159161
wuffs_nie__decoder__alloc(void) {
5916259162
wuffs_nie__decoder* x =
59163-
(wuffs_nie__decoder*)(calloc(sizeof(wuffs_nie__decoder), 1));
59163+
(wuffs_nie__decoder*)(calloc(1, sizeof(wuffs_nie__decoder)));
5916459164
if (!x) {
5916559165
return NULL;
5916659166
}
@@ -60204,7 +60204,7 @@ wuffs_zlib__decoder__initialize(
6020460204
wuffs_zlib__decoder*
6020560205
wuffs_zlib__decoder__alloc(void) {
6020660206
wuffs_zlib__decoder* x =
60207-
(wuffs_zlib__decoder*)(calloc(sizeof(wuffs_zlib__decoder), 1));
60207+
(wuffs_zlib__decoder*)(calloc(1, sizeof(wuffs_zlib__decoder)));
6020860208
if (!x) {
6020960209
return NULL;
6021060210
}
@@ -61172,7 +61172,7 @@ wuffs_png__decoder__initialize(
6117261172
wuffs_png__decoder*
6117361173
wuffs_png__decoder__alloc(void) {
6117461174
wuffs_png__decoder* x =
61175-
(wuffs_png__decoder*)(calloc(sizeof(wuffs_png__decoder), 1));
61175+
(wuffs_png__decoder*)(calloc(1, sizeof(wuffs_png__decoder)));
6117661176
if (!x) {
6117761177
return NULL;
6117861178
}
@@ -67322,7 +67322,7 @@ wuffs_qoi__decoder__initialize(
6732267322
wuffs_qoi__decoder*
6732367323
wuffs_qoi__decoder__alloc(void) {
6732467324
wuffs_qoi__decoder* x =
67325-
(wuffs_qoi__decoder*)(calloc(sizeof(wuffs_qoi__decoder), 1));
67325+
(wuffs_qoi__decoder*)(calloc(1, sizeof(wuffs_qoi__decoder)));
6732667326
if (!x) {
6732767327
return NULL;
6732867328
}
@@ -68559,7 +68559,7 @@ wuffs_sha256__hasher__initialize(
6855968559
wuffs_sha256__hasher*
6856068560
wuffs_sha256__hasher__alloc(void) {
6856168561
wuffs_sha256__hasher* x =
68562-
(wuffs_sha256__hasher*)(calloc(sizeof(wuffs_sha256__hasher), 1));
68562+
(wuffs_sha256__hasher*)(calloc(1, sizeof(wuffs_sha256__hasher)));
6856368563
if (!x) {
6856468564
return NULL;
6856568565
}
@@ -69192,7 +69192,7 @@ wuffs_tga__decoder__initialize(
6919269192
wuffs_tga__decoder*
6919369193
wuffs_tga__decoder__alloc(void) {
6919469194
wuffs_tga__decoder* x =
69195-
(wuffs_tga__decoder*)(calloc(sizeof(wuffs_tga__decoder), 1));
69195+
(wuffs_tga__decoder*)(calloc(1, sizeof(wuffs_tga__decoder)));
6919669196
if (!x) {
6919769197
return NULL;
6919869198
}
@@ -70561,7 +70561,7 @@ wuffs_vp8__placeholder__initialize(
7056170561
wuffs_vp8__placeholder*
7056270562
wuffs_vp8__placeholder__alloc(void) {
7056370563
wuffs_vp8__placeholder* x =
70564-
(wuffs_vp8__placeholder*)(calloc(sizeof(wuffs_vp8__placeholder), 1));
70564+
(wuffs_vp8__placeholder*)(calloc(1, sizeof(wuffs_vp8__placeholder)));
7056570565
if (!x) {
7056670566
return NULL;
7056770567
}
@@ -70709,7 +70709,7 @@ wuffs_wbmp__decoder__initialize(
7070970709
wuffs_wbmp__decoder*
7071070710
wuffs_wbmp__decoder__alloc(void) {
7071170711
wuffs_wbmp__decoder* x =
70712-
(wuffs_wbmp__decoder*)(calloc(sizeof(wuffs_wbmp__decoder), 1));
70712+
(wuffs_wbmp__decoder*)(calloc(1, sizeof(wuffs_wbmp__decoder)));
7071370713
if (!x) {
7071470714
return NULL;
7071570715
}
@@ -71844,7 +71844,7 @@ wuffs_webp__decoder__initialize(
7184471844
wuffs_webp__decoder*
7184571845
wuffs_webp__decoder__alloc(void) {
7184671846
wuffs_webp__decoder* x =
71847-
(wuffs_webp__decoder*)(calloc(sizeof(wuffs_webp__decoder), 1));
71847+
(wuffs_webp__decoder*)(calloc(1, sizeof(wuffs_webp__decoder)));
7184871848
if (!x) {
7184971849
return NULL;
7185071850
}
@@ -75579,7 +75579,7 @@ wuffs_xxhash32__hasher__initialize(
7557975579
wuffs_xxhash32__hasher*
7558075580
wuffs_xxhash32__hasher__alloc(void) {
7558175581
wuffs_xxhash32__hasher* x =
75582-
(wuffs_xxhash32__hasher*)(calloc(sizeof(wuffs_xxhash32__hasher), 1));
75582+
(wuffs_xxhash32__hasher*)(calloc(1, sizeof(wuffs_xxhash32__hasher)));
7558375583
if (!x) {
7558475584
return NULL;
7558575585
}
@@ -75992,7 +75992,7 @@ wuffs_xxhash64__hasher__initialize(
7599275992
wuffs_xxhash64__hasher*
7599375993
wuffs_xxhash64__hasher__alloc(void) {
7599475994
wuffs_xxhash64__hasher* x =
75995-
(wuffs_xxhash64__hasher*)(calloc(sizeof(wuffs_xxhash64__hasher), 1));
75995+
(wuffs_xxhash64__hasher*)(calloc(1, sizeof(wuffs_xxhash64__hasher)));
7599675996
if (!x) {
7599775997
return NULL;
7599875998
}
@@ -76633,7 +76633,7 @@ wuffs_xz__decoder__initialize(
7663376633
wuffs_xz__decoder*
7663476634
wuffs_xz__decoder__alloc(void) {
7663576635
wuffs_xz__decoder* x =
76636-
(wuffs_xz__decoder*)(calloc(sizeof(wuffs_xz__decoder), 1));
76636+
(wuffs_xz__decoder*)(calloc(1, sizeof(wuffs_xz__decoder)));
7663776637
if (!x) {
7663876638
return NULL;
7663976639
}
@@ -79660,7 +79660,7 @@ DecodeImageCallbacks::AllocPixbuf(const wuffs_base__image_config& image_config,
7966079660
return AllocPixbufResult(DecodeImage_UnsupportedPixelConfiguration);
7966179661
}
7966279662
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);
7966479664
if (!ptr) {
7966579665
return AllocPixbufResult(DecodeImage_OutOfMemory);
7966679666
}
@@ -79685,7 +79685,7 @@ DecodeImageCallbacks::AllocWorkbuf(wuffs_base__range_ii_u64 len_range,
7968579685
return AllocWorkbufResult(DecodeImage_OutOfMemory);
7968679686
}
7968779687
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);
7968979689
if (!ptr) {
7969079690
return AllocWorkbufResult(DecodeImage_OutOfMemory);
7969179691
}

0 commit comments

Comments
 (0)