From 4d8cfe5bdb364fe3f4fca59c263dc1cdbd87e7e5 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Thu, 24 Oct 2013 10:11:37 -0400 Subject: Fix array index out of bounds due to malformed plugin message (PR539) Failed calls to getString and getMember on JSObjects should not produce malformed result strings. "null" is appended to result rather than empty string. * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: (_getMember, _getString) append "null" to result when call is unsuccessful * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html: new test to ensure failed calls to getMember and getString on JSObject do not produce malformed results * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js: same * tests/reproducers/simple/JSObjectWithoutToString/srcs/JSObjectWithoutToString.java: same * tests/reproducers/simple/JSObjectWithoutToString/testcases/JSObjectWithoutToStringTest.java: same --- ChangeLog | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 2d48963..d5c9dd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2013-10-24 Andrew Azores + + Fix array index out of bounds due to malformed plugin message (PR539) + * plugin/icedteanp/IcedTeaPluginRequestProcessor.cc: (_getMember, + _getString) append "null" to result when call is unsuccessful + * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.html: + new test to ensure failed calls to getMember and getString on JSObject do + not produce malformed results + * tests/reproducers/simple/JSObjectWithoutToString/resources/JSObjectWithoutToString.js: + same + * tests/reproducers/simple/JSObjectWithoutToString/srcs/JSObjectWithoutToString.java: + same + * tests/reproducers/simple/JSObjectWithoutToString/testcases/JSObjectWithoutToStringTest.java: + same + 2013-10-23 Jiri Vanek C-part of plugin is now also trying to follow XDG -- cgit v1.2.3