Ticket #2018: png-1.2.26-to-1.2.29.diff
File png-1.2.26-to-1.2.29.diff, 22.8 KB (added by , 16 years ago) |
---|
-
src/add-ons/translators/png/PNGView.cpp
94 94 fCopyrightView->SetText(png_get_copyright(NULL)); 95 95 96 96 BFont font; 97 font.SetSize(font.Size() * 0. 8);97 font.SetSize(font.Size() * 0.7); 98 98 fCopyrightView->SetFontAndColor(&font, B_FONT_SIZE, NULL); 99 99 AddChild(fCopyrightView); 100 100 -
src/add-ons/translators/exr/ConfigView.cpp
25 25 float height = fontHeight.descent + fontHeight.ascent + fontHeight.leading; 26 26 27 27 BRect rect(10, 10, 200, 10 + height); 28 BStringView *stringView = new BStringView(rect, "title", "EXR Image s");28 BStringView *stringView = new BStringView(rect, "title", "EXR Image Translator"); 29 29 stringView->SetFont(be_bold_font); 30 30 stringView->ResizeToPreferred(); 31 31 AddChild(stringView); -
src/libs/png/pngwrite.c
1 1 2 2 /* pngwrite.c - general routines to write a PNG file 3 3 * 4 * Last changed in libpng 1.2.2 5 [February 18, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 112 112 ((up->name[3] & 0x20) || keep == PNG_HANDLE_CHUNK_ALWAYS || 113 113 (png_ptr->flags & PNG_FLAG_KEEP_UNSAFE_CHUNKS))) 114 114 { 115 if (up->size == 0) 116 png_warning(png_ptr, "Writing zero-length unknown chunk"); 115 117 png_write_chunk(png_ptr, up->name, up->data, up->size); 116 118 } 117 119 } -
src/libs/png/pngpread.c
1 1 2 2 /* pngpread.c - read a png file in push mode 3 3 * 4 * Last changed in libpng 1.2.2 6 [April 2, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 1502 1502 png_sizeof(png_ptr->unknown_chunk.name)); 1503 1503 png_ptr->unknown_chunk.name[png_sizeof(png_ptr->unknown_chunk.name)-1]='\0'; 1504 1504 1505 png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length);1506 1505 png_ptr->unknown_chunk.size = (png_size_t)length; 1507 png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); 1506 if (length == 0) 1507 png_ptr->unknown_chunk.data = NULL; 1508 else 1509 { 1510 png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); 1511 png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); 1512 } 1508 1513 #if defined(PNG_READ_USER_CHUNKS_SUPPORTED) 1509 1514 if(png_ptr->read_user_chunk_fn != NULL) 1510 1515 { -
src/libs/png/pngset.c
1 1 2 2 /* pngset.c - storage of image information into info struct 3 3 * 4 * Last changed in libpng 1.2.2 5 [February 18, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 914 914 if (png_ptr == NULL || info_ptr == NULL) 915 915 return; 916 916 917 png_free_data(png_ptr, info_ptr, PNG_FREE_TRNS, 0); 918 917 919 if (trans != NULL) 918 920 { 919 921 /* … … 921 923 * we do it for backward compatibility with the way the png_handle_tRNS 922 924 * function used to do the allocation. 923 925 */ 924 #ifdef PNG_FREE_ME_SUPPORTED 925 png_free_data(png_ptr, info_ptr, PNG_FREE_TRNS, 0); 926 #endif 926 927 927 /* Changed from num_trans to PNG_MAX_PALETTE_LENGTH in version 1.2.1 */ 928 928 png_ptr->trans = info_ptr->trans = (png_bytep)png_malloc(png_ptr, 929 929 (png_uint_32)PNG_MAX_PALETTE_LENGTH); 930 if (num_trans <= PNG_MAX_PALETTE_LENGTH)930 if (num_trans > 0 && num_trans <= PNG_MAX_PALETTE_LENGTH) 931 931 png_memcpy(info_ptr->trans, trans, (png_size_t)num_trans); 932 #ifdef PNG_FREE_ME_SUPPORTED933 info_ptr->free_me |= PNG_FREE_TRNS;934 #else935 png_ptr->flags |= PNG_FLAG_FREE_TRNS;936 #endif937 932 } 938 933 939 934 if (trans_values != NULL) 940 935 { 936 int sample_max = (1 << info_ptr->bit_depth); 937 if ((info_ptr->color_type == PNG_COLOR_TYPE_GRAY && 938 (int)trans_values->gray > sample_max) || 939 (info_ptr->color_type == PNG_COLOR_TYPE_RGB && 940 ((int)trans_values->red > sample_max || 941 (int)trans_values->green > sample_max || 942 (int)trans_values->blue > sample_max))) 943 png_warning(png_ptr, 944 "tRNS chunk has out-of-range samples for bit_depth"); 941 945 png_memcpy(&(info_ptr->trans_values), trans_values, 942 946 png_sizeof(png_color_16)); 943 947 if (num_trans == 0) 944 948 num_trans = 1; 945 949 } 950 946 951 info_ptr->num_trans = (png_uint_16)num_trans; 947 info_ptr->valid |= PNG_INFO_tRNS; 952 if (num_trans != 0) 953 { 954 info_ptr->valid |= PNG_INFO_tRNS; 955 #ifdef PNG_FREE_ME_SUPPORTED 956 info_ptr->free_me |= PNG_FREE_TRNS; 957 #else 958 png_ptr->flags |= PNG_FLAG_FREE_TRNS; 959 #endif 960 } 948 961 } 949 962 #endif 950 963 … … 1040 1053 1041 1054 for (i = 0; i < num_unknowns; i++) 1042 1055 { 1043 1044 1056 png_unknown_chunkp to = np + info_ptr->unknown_chunks_num + i; 1057 png_unknown_chunkp from = unknowns + i; 1045 1058 1046 png_memcpy((png_charp)to->name, 1047 (png_charp)from->name, 1048 png_sizeof(from->name)); 1049 to->name[png_sizeof(to->name)-1] = '\0'; 1059 png_memcpy((png_charp)to->name, 1060 (png_charp)from->name, 1061 png_sizeof(from->name)); 1062 to->name[png_sizeof(to->name)-1] = '\0'; 1063 to->size = from->size; 1064 /* note our location in the read or write sequence */ 1065 to->location = (png_byte)(png_ptr->mode & 0xff); 1050 1066 1051 to->data = (png_bytep)png_malloc_warn(png_ptr, from->size); 1052 if (to->data == NULL) 1053 { 1054 png_warning(png_ptr, 1067 if (from->size == 0) 1068 to->data=NULL; 1069 else 1070 { 1071 to->data = (png_bytep)png_malloc_warn(png_ptr, from->size); 1072 if (to->data == NULL) 1073 { 1074 png_warning(png_ptr, 1055 1075 "Out of memory while processing unknown chunk."); 1056 } 1057 else 1058 { 1059 png_memcpy(to->data, from->data, from->size); 1060 to->size = from->size; 1061 1062 /* note our location in the read or write sequence */ 1063 to->location = (png_byte)(png_ptr->mode & 0xff); 1064 } 1076 to->size=0; 1077 } 1078 else 1079 png_memcpy(to->data, from->data, from->size); 1080 } 1065 1081 } 1066 1082 1067 1083 info_ptr->unknown_chunks = np; … … 1193 1209 { 1194 1210 if (png_ptr == NULL) 1195 1211 return; 1196 if(png_ptr->zbuf) 1197 png_free(png_ptr, png_ptr->zbuf); 1212 png_free(png_ptr, png_ptr->zbuf); 1198 1213 png_ptr->zbuf_size = (png_size_t)size; 1199 1214 png_ptr->zbuf = (png_bytep)png_malloc(png_ptr, size); 1200 1215 png_ptr->zstream.next_out = png_ptr->zbuf; -
src/libs/png/pngrutil.c
1 1 2 2 /* pngrutil.c - utilities to read a PNG file 3 3 * 4 * Last changed in libpng 1.2.2 6 [April 2, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 1241 1241 png_handle_tRNS(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) 1242 1242 { 1243 1243 png_byte readbuf[PNG_MAX_PALETTE_LENGTH]; 1244 int bit_mask;1245 1244 1246 1245 png_debug(1, "in png_handle_tRNS\n"); 1247 1246 1248 /* For non-indexed color, mask off any bits in the tRNS value that1249 * exceed the bit depth. Some creators were writing extra bits there.1250 * This is not needed for indexed color. */1251 bit_mask = (1 << png_ptr->bit_depth) - 1;1252 1253 1247 if (!(png_ptr->mode & PNG_HAVE_IHDR)) 1254 1248 png_error(png_ptr, "Missing IHDR before tRNS"); 1255 1249 else if (png_ptr->mode & PNG_HAVE_IDAT) … … 1278 1272 1279 1273 png_crc_read(png_ptr, buf, 2); 1280 1274 png_ptr->num_trans = 1; 1281 png_ptr->trans_values.gray = png_get_uint_16(buf) & bit_mask;1275 png_ptr->trans_values.gray = png_get_uint_16(buf); 1282 1276 } 1283 1277 else if (png_ptr->color_type == PNG_COLOR_TYPE_RGB) 1284 1278 { … … 1292 1286 } 1293 1287 png_crc_read(png_ptr, buf, (png_size_t)length); 1294 1288 png_ptr->num_trans = 1; 1295 png_ptr->trans_values.red = png_get_uint_16(buf) & bit_mask;1296 png_ptr->trans_values.green = png_get_uint_16(buf + 2) & bit_mask;1297 png_ptr->trans_values.blue = png_get_uint_16(buf + 4) & bit_mask;1289 png_ptr->trans_values.red = png_get_uint_16(buf); 1290 png_ptr->trans_values.green = png_get_uint_16(buf + 2); 1291 png_ptr->trans_values.blue = png_get_uint_16(buf + 4); 1298 1292 } 1299 1293 else if (png_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 1300 1294 { … … 2227 2221 (png_charp)png_ptr->chunk_name, 2228 2222 png_sizeof(png_ptr->unknown_chunk.name)); 2229 2223 png_ptr->unknown_chunk.name[png_sizeof(png_ptr->unknown_chunk.name)-1] = '\0'; 2230 png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length);2231 2224 png_ptr->unknown_chunk.size = (png_size_t)length; 2232 png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); 2225 if (length == 0) 2226 png_ptr->unknown_chunk.data = NULL; 2227 else 2228 { 2229 png_ptr->unknown_chunk.data = (png_bytep)png_malloc(png_ptr, length); 2230 png_crc_read(png_ptr, (png_bytep)png_ptr->unknown_chunk.data, length); 2231 } 2233 2232 #if defined(PNG_READ_USER_CHUNKS_SUPPORTED) 2234 2233 if(png_ptr->read_user_chunk_fn != NULL) 2235 2234 { … … 2251 2250 } 2252 2251 else 2253 2252 #endif 2254 2253 png_set_unknown_chunks(png_ptr, info_ptr, &png_ptr->unknown_chunk, 1); 2255 2254 png_free(png_ptr, png_ptr->unknown_chunk.data); 2256 2255 png_ptr->unknown_chunk.data = NULL; 2257 2256 } … … 3149 3148 3150 3149 if(row_bytes + 64 > png_ptr->old_big_row_buf_size) 3151 3150 { 3152 if (png_ptr->big_row_buf) 3153 png_free(png_ptr,png_ptr->big_row_buf); 3151 png_free(png_ptr,png_ptr->big_row_buf); 3154 3152 png_ptr->big_row_buf = (png_bytep)png_malloc(png_ptr, row_bytes+64); 3155 3153 png_ptr->row_buf = png_ptr->big_row_buf+32; 3156 3154 png_ptr->old_big_row_buf_size = row_bytes+64; … … 3165 3163 3166 3164 if(png_ptr->rowbytes+1 > png_ptr->old_prev_row_size) 3167 3165 { 3168 if (png_ptr->prev_row) 3169 png_free(png_ptr,png_ptr->prev_row); 3166 png_free(png_ptr,png_ptr->prev_row); 3170 3167 png_ptr->prev_row = (png_bytep)png_malloc(png_ptr, (png_uint_32)( 3171 3168 png_ptr->rowbytes + 1)); 3172 3169 png_ptr->old_prev_row_size = png_ptr->rowbytes+1; -
src/libs/png/pngwutil.c
1 1 2 2 /* pngwutil.c - utilities to write a PNG file 3 3 * 4 * Last changed in libpng 1.2.2 6 [April 2, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 1516 1516 1517 1517 png_write_chunk_end(png_ptr); 1518 1518 png_free(png_ptr, new_key); 1519 if (new_lang) 1520 png_free(png_ptr, new_lang); 1519 png_free(png_ptr, new_lang); 1521 1520 } 1522 1521 #endif 1523 1522 -
src/libs/png/pngmem.c
1 1 2 2 /* pngmem.c - stub functions for memory allocation 3 3 * 4 * Last changed in libpng 1.2.2 6 [April 2, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 293 293 { 294 294 #endif /* PNG_USER_MEM_SUPPORTED */ 295 295 296 if(png_ptr == NULL ) return;296 if(png_ptr == NULL || ptr == NULL) return; 297 297 298 298 if (png_ptr->offset_table != NULL) 299 299 { -
src/libs/png/png.c
13 13 #include "png.h" 14 14 15 15 /* Generate a compiler error if there is an old png.h in the search path. */ 16 typedef version_1_2_2 6 Your_png_h_is_not_version_1_2_26;16 typedef version_1_2_29 Your_png_h_is_not_version_1_2_29; 17 17 18 18 /* Version information for C files. This had better match the version 19 19 * string defined in png.h. */ … … 693 693 png_get_copyright(png_structp png_ptr) 694 694 { 695 695 png_ptr = png_ptr; /* silence compiler warning about unused png_ptr */ 696 return ((png_charp) "\n libpng version 1.2.2 6 - April 2, 2008\n\696 return ((png_charp) "\n libpng version 1.2.29 - May 8, 2008\n\ 697 697 Copyright (c) 1998-2008 Glenn Randers-Pehrson\n\ 698 698 Copyright (c) 1996-1997 Andreas Dilger\n\ 699 699 Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.\n"); -
src/libs/png/pnggccrd.c
2 2 3 3 /* This code snippet is for use by configure's compilation test. */ 4 4 5 #if defined(PNG_ASSEMBLER_CODE_SUPPORTED) && \ 5 #if (!defined _MSC_VER) && \ 6 defined(PNG_ASSEMBLER_CODE_SUPPORTED) && \ 6 7 defined(PNG_MMX_CODE_SUPPORTED) 8 7 9 int PNGAPI png_dummy_mmx_support(void); 8 10 9 11 static int _mmx_supported = 2; // 0: no MMX; 1: MMX supported; 2: not tested -
src/libs/png/pngrtran.c
1 1 2 2 /* pngrtran.c - transforms the data in a row for PNG readers 3 3 * 4 * Last changed in libpng 1.2.2 5 [February 18, 2008]4 * Last changed in libpng 1.2.27 [April 29, 2008] 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) … … 548 548 png_debug(1, "in png_set_expand\n"); 549 549 if(png_ptr == NULL) return; 550 550 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); 551 #ifdef PNG_WARN_UNINITIALIZED_ROW552 551 png_ptr->flags &= ~PNG_FLAG_ROW_INIT; 553 #endif554 552 } 555 553 556 554 /* GRR 19990627: the following three functions currently are identical … … 577 575 png_debug(1, "in png_set_palette_to_rgb\n"); 578 576 if(png_ptr == NULL) return; 579 577 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); 580 #ifdef PNG_WARN_UNINITIALIZED_ROW581 578 png_ptr->flags &= ~PNG_FLAG_ROW_INIT; 582 #endif583 579 } 584 580 585 581 #if !defined(PNG_1_0_X) … … 590 586 png_debug(1, "in png_set_expand_gray_1_2_4_to_8\n"); 591 587 if(png_ptr == NULL) return; 592 588 png_ptr->transformations |= PNG_EXPAND; 593 #ifdef PNG_WARN_UNINITIALIZED_ROW594 589 png_ptr->flags &= ~PNG_FLAG_ROW_INIT; 595 #endif596 590 } 597 591 #endif 598 592 … … 615 609 { 616 610 png_debug(1, "in png_set_tRNS_to_alpha\n"); 617 611 png_ptr->transformations |= (PNG_EXPAND | PNG_EXPAND_tRNS); 618 #ifdef PNG_WARN_UNINITIALIZED_ROW619 612 png_ptr->flags &= ~PNG_FLAG_ROW_INIT; 620 #endif621 613 } 622 614 #endif /* defined(PNG_READ_EXPAND_SUPPORTED) */ 623 615 … … 627 619 { 628 620 png_debug(1, "in png_set_gray_to_rgb\n"); 629 621 png_ptr->transformations |= PNG_GRAY_TO_RGB; 630 #ifdef PNG_WARN_UNINITIALIZED_ROW631 622 png_ptr->flags &= ~PNG_FLAG_ROW_INIT; 632 #endif633 623 } 634 624 #endif 635 625 … … 967 957 /* Prevent the transformations being done again, and make sure 968 958 * that the now spurious alpha channel is stripped - the code 969 959 * has just reduced background composition and gamma correction 970 * to a simpl yalpha channel strip.960 * to a simple alpha channel strip. 971 961 */ 972 962 png_ptr->transformations &= ~PNG_BACKGROUND; 973 963 png_ptr->transformations &= ~PNG_GAMMA; … … 1138 1128 { 1139 1129 if (info_ptr->color_type == PNG_COLOR_TYPE_PALETTE) 1140 1130 { 1141 if (png_ptr->num_trans && (png_ptr->transformations & PNG_EXPAND_tRNS)) 1131 if (png_ptr->num_trans && 1132 (png_ptr->transformations & PNG_EXPAND_tRNS)) 1142 1133 info_ptr->color_type = PNG_COLOR_TYPE_RGB_ALPHA; 1143 1134 else 1144 1135 info_ptr->color_type = PNG_COLOR_TYPE_RGB; … … 1151 1142 { 1152 1143 if (png_ptr->transformations & PNG_EXPAND_tRNS) 1153 1144 info_ptr->color_type |= PNG_COLOR_MASK_ALPHA; 1145 #if 0 /* Removed from libpng-1.2.27 */ 1154 1146 else 1155 1147 info_ptr->color_type |= PNG_COLOR_MASK_COLOR; 1148 #endif 1156 1149 } 1157 1150 if (info_ptr->bit_depth < 8) 1158 1151 info_ptr->bit_depth = 8; -
headers/libs/png/pngconf.h
1 1 2 2 /* pngconf.h - machine configurable file for libpng 3 3 * 4 * libpng version 1.2.2 6 - April 2, 20084 * libpng version 1.2.29 - May 8, 2008 5 5 * For conditions of distribution and use, see copyright notice in png.h 6 6 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 7 7 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) -
headers/libs/png/png.h
1 2 1 /* png.h - header file for PNG reference library 3 2 * 4 * libpng version 1.2.2 6 - April 2, 20083 * libpng version 1.2.29 - May 8, 2008 5 4 * Copyright (c) 1998-2008 Glenn Randers-Pehrson 6 5 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) 7 6 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) … … 9 8 * Authors and maintainers: 10 9 * libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat 11 10 * libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger 12 * libpng versions 0.97, January 1998, through 1.2.2 6 - April 2, 2008: Glenn11 * libpng versions 0.97, January 1998, through 1.2.29 - May 8, 2008: Glenn 13 12 * See also "Contributing Authors", below. 14 13 * 15 14 * Note about libpng version numbers: … … 181 180 * 1.2.25 13 10225 12.so.0.25[.0] 182 181 * 1.2.26beta01-06 13 10226 12.so.0.26[.0] 183 182 * 1.2.26rc01 13 10226 12.so.0.26[.0] 183 * 1.2.26 13 10226 12.so.0.26[.0] 184 * 1.0.32 10 10032 10.so.0.32[.0] 185 * 1.2.27beta01-06 13 10227 12.so.0.27[.0] 186 * 1.2.27rc01 13 10227 12.so.0.27[.0] 187 * 1.0.33 10 10033 10.so.0.33[.0] 188 * 1.2.27 13 10227 12.so.0.27[.0] 189 * 1.0.34 10 10034 10.so.0.34[.0] 190 * 1.2.28 13 10228 12.so.0.28[.0] 191 * 1.2.29beta01-03 13 10229 12.so.0.29[.0] 192 * 1.2.29rc01 13 10229 12.so.0.29[.0] 193 * 1.0.35 10 10035 10.so.0.35[.0] 194 * 1.2.29 13 10229 12.so.0.29[.0] 184 195 * 185 196 * Henceforth the source version will match the shared-library major 186 197 * and minor numbers; the shared-library major version number will be … … 190 201 * to the source version x.y.z (leading zeros in y and z). Beta versions 191 202 * were given the previous public release number plus a letter, until 192 203 * version 1.0.6j; from then on they were given the upcoming public 193 * release number plus "betaNN" or "rcN ".204 * release number plus "betaNN" or "rcNN". 194 205 * 195 206 * Binary incompatibility exists only when applications make direct access 196 207 * to the info_ptr or png_ptr members through png.h, and the compiled … … 210 221 * If you modify libpng you may insert additional notices immediately following 211 222 * this sentence. 212 223 * 213 * libpng versions 1.2.6, August 15, 2004, through 1.2.2 6, April 2, 2008, are224 * libpng versions 1.2.6, August 15, 2004, through 1.2.29, May 8, 2008, are 214 225 * Copyright (c) 2004, 2006-2008 Glenn Randers-Pehrson, and are 215 226 * distributed according to the same disclaimer and license as libpng-1.2.5 216 227 * with the following individual added to the list of Contributing Authors: … … 322 333 * Y2K compliance in libpng: 323 334 * ========================= 324 335 * 325 * April 2, 2008336 * May 8, 2008 326 337 * 327 338 * Since the PNG Development group is an ad-hoc body, we can't make 328 339 * an official declaration. 329 340 * 330 341 * This is your unofficial assurance that libpng from version 0.71 and 331 * upward through 1.2.2 6are Y2K compliant. It is my belief that earlier342 * upward through 1.2.29 are Y2K compliant. It is my belief that earlier 332 343 * versions were also Y2K compliant. 333 344 * 334 345 * Libpng only has three year fields. One is a 2-byte unsigned integer … … 384 395 */ 385 396 386 397 /* Version information for png.h - this should match the version in png.c */ 387 #define PNG_LIBPNG_VER_STRING "1.2.2 6"398 #define PNG_LIBPNG_VER_STRING "1.2.29" 388 399 #define PNG_HEADER_VERSION_STRING \ 389 " libpng version 1.2.2 6 - April 2, 2008\n"400 " libpng version 1.2.29 - May 8, 2008\n" 390 401 391 402 #define PNG_LIBPNG_VER_SONUM 0 392 403 #define PNG_LIBPNG_VER_DLLNUM 13 … … 394 405 /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */ 395 406 #define PNG_LIBPNG_VER_MAJOR 1 396 407 #define PNG_LIBPNG_VER_MINOR 2 397 #define PNG_LIBPNG_VER_RELEASE 2 6408 #define PNG_LIBPNG_VER_RELEASE 29 398 409 /* This should match the numeric part of the final component of 399 410 * PNG_LIBPNG_VER_STRING, omitting any leading zero: */ 400 411 … … 422 433 * Versions 0.7 through 1.0.0 were in the range 0 to 100 here (only 423 434 * version 1.0.0 was mis-numbered 100 instead of 10000). From 424 435 * version 1.0.1 it's xxyyzz, where x=major, y=minor, z=release */ 425 #define PNG_LIBPNG_VER 1022 6 /* 1.2.26*/436 #define PNG_LIBPNG_VER 10229 /* 1.2.29 */ 426 437 427 438 #ifndef PNG_VERSION_INFO_ONLY 428 439 /* include the compression library's header */ … … 1439 1450 /* This triggers a compiler error in png.c, if png.c and png.h 1440 1451 * do not agree upon the version number. 1441 1452 */ 1442 typedef png_structp version_1_2_2 6;1453 typedef png_structp version_1_2_29; 1443 1454 1444 1455 typedef png_struct FAR * FAR * png_structpp; 1445 1456