9afab81d6a
Mozilla Firefox is a free, open-source and cross-platform web browser for Windows, Linux, MacOS X and many other operating systems. It is fast and easy to use, and offers many advantages over other web browsers, such as tabbed browsing and the ability to block pop-up windows. Firefox also offers excellent bookmark and history management, and it can be extended by developers using industry standards such as XML, CSS, JavaScript, C++, etc. Many extensions are available. This package tracks Firefox 45 ESR branch. Changelog from www/firefox 45.0.2: Fixed in Firefox ESR 45.1 2016-47 Write to invalid HashMap entry through JavaScript.watch() 2016-44 Buffer overflow in libstagefright with CENC offsets 2016-39 Miscellaneous memory safety hazards (rv:46.0 / rv:45.1 / rv:38.8)
15 lines
921 B
C++
15 lines
921 B
C++
$NetBSD: patch-js_src_jsdate.cpp,v 1.1 2016/04/27 16:36:50 ryoon Exp $
|
|
|
|
--- js/src/jsdate.cpp.orig 2016-02-25 23:02:04.000000000 +0000
|
|
+++ js/src/jsdate.cpp
|
|
@@ -2672,8 +2672,8 @@ ToLocaleFormatHelper(JSContext* cx, Hand
|
|
if (strcmp(format, "%x") == 0 && result_len >= 6 &&
|
|
/* Format %x means use OS settings, which may have 2-digit yr, so
|
|
hack end of 3/11/22 or 11.03.22 or 11Mar22 to use 4-digit yr...*/
|
|
- !isdigit(buf[result_len - 3]) &&
|
|
- isdigit(buf[result_len - 2]) && isdigit(buf[result_len - 1]) &&
|
|
+ !isdigit(((unsigned char)buf[result_len - 3])) &&
|
|
+ isdigit(((unsigned char)buf[result_len - 2])) && isdigit(((unsigned char)buf[result_len - 1])) &&
|
|
/* ...but not if starts with 4-digit year, like 2022/3/11. */
|
|
!(isdigit(buf[0]) && isdigit(buf[1]) &&
|
|
isdigit(buf[2]) && isdigit(buf[3]))) {
|