diff --git a/SECURITY.md b/SECURITY.md index 018d7f6ac..be4373e7c 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -20,6 +20,7 @@ The following table shows the currently supported versions: | ------- |--------------| ------------------ | | < 2.0.0 | stable-1.x | :x: | | 2.x.x | stable-2.0 | :heavy_check_mark: | +| 3.x.x | stable-3.0 | :white_check_mark: | | - | master | :white_check_mark: | diff --git a/winpr/libwinpr/timezone/TimeZoneIanaAbbrevMap.c b/winpr/libwinpr/timezone/TimeZoneIanaAbbrevMap.c index 7bc28719b..370e5b4cc 100644 --- a/winpr/libwinpr/timezone/TimeZoneIanaAbbrevMap.c +++ b/winpr/libwinpr/timezone/TimeZoneIanaAbbrevMap.c @@ -110,7 +110,7 @@ static char* topath(const char* base, const char* bname, const char* name) return _strdup(base); if (!base && !bname) - return _strdup(bname); + return _strdup(name); if (!base) winpr_asprintf(&path, &plen, "%s/%s", bname, name); @@ -129,7 +129,7 @@ static void iterate_subdir_recursive(const char* base, const char* bname, const if (!path) return; - struct DIR* d = opendir(path); + DIR* d = opendir(path); if (d) { struct dirent* dp = NULL; diff --git a/winpr/libwinpr/utils/image.c b/winpr/libwinpr/utils/image.c index 8ff45bc84..4848b2378 100644 --- a/winpr/libwinpr/utils/image.c +++ b/winpr/libwinpr/utils/image.c @@ -626,7 +626,10 @@ static void* winpr_convert_to_jpeg(const void* data, size_t size, UINT32 width, for (size_t x = 0; x < height; x++) { const JDIMENSION offset = x * stride; - const JSAMPLE* coffset = &cdata[offset]; + + /* libjpeg is not const correct, we must cast here to avoid issues + * with newer C compilers type check errors */ + JSAMPLE* coffset = (JSAMPLE*)&cdata[offset]; if (jpeg_write_scanlines(&cinfo, &coffset, 1) != 1) goto fail; }