@@ -230,10 +230,10 @@ static size_t php_strnlen(char* str, size_t maxlen) {
230
230
/* }}} */
231
231
232
232
/* {{{ error messages */
233
- static const char * EXIF_ERROR_FILEEOF = "Unexpected end of file reached" ;
234
- static const char * EXIF_ERROR_CORRUPT = "File structure corrupted" ;
235
- static const char * EXIF_ERROR_THUMBEOF = "Thumbnail goes IFD boundary or end of file reached" ;
236
- static const char * EXIF_ERROR_FSREALLOC = "Illegal reallocating of undefined file section" ;
233
+ static const char * const EXIF_ERROR_FILEEOF = "Unexpected end of file reached" ;
234
+ static const char * const EXIF_ERROR_CORRUPT = "File structure corrupted" ;
235
+ static const char * const EXIF_ERROR_THUMBEOF = "Thumbnail goes IFD boundary or end of file reached" ;
236
+ static const char * const EXIF_ERROR_FSREALLOC = "Illegal reallocating of undefined file section" ;
237
237
238
238
#define EXIF_ERRLOG_FILEEOF (ImageInfo ) exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, "%s", EXIF_ERROR_FILEEOF);
239
239
#define EXIF_ERRLOG_CORRUPT (ImageInfo ) exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, "%s", EXIF_ERROR_CORRUPT);
@@ -244,7 +244,7 @@ static const char * EXIF_ERROR_FSREALLOC = "Illegal reallocating of undefined fi
244
244
/* {{{ format description defines
245
245
Describes format descriptor
246
246
*/
247
- static int php_tiff_bytes_per_format [] = {0 , 1 , 1 , 2 , 4 , 8 , 1 , 1 , 2 , 4 , 8 , 4 , 8 , 1 };
247
+ static const int php_tiff_bytes_per_format [] = {0 , 1 , 1 , 2 , 4 , 8 , 1 , 1 , 2 , 4 , 8 , 4 , 8 , 1 };
248
248
#define NUM_FORMATS 13
249
249
250
250
#define TAG_FMT_BYTE 1
@@ -504,8 +504,8 @@ typedef const struct {
504
504
char * Desc ;
505
505
} tag_info_type ;
506
506
507
- typedef tag_info_type tag_info_array [];
508
- typedef tag_info_type * tag_table_type ;
507
+ typedef const tag_info_type tag_info_array [];
508
+ typedef const tag_info_type * tag_table_type ;
509
509
510
510
#define TAG_TABLE_END \
511
511
{TAG_NONE, "No tag value"},\
0 commit comments