You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2017/05/07 18:13:13 UTC
[1/2] incubator-guacamole-client git commit: GUACAMOLE-295: Fix an
incorrect comparison with NaN.
Repository: incubator-guacamole-client
Updated Branches:
refs/heads/master 1c0ee41d0 -> 0bec63219
GUACAMOLE-295: Fix an incorrect comparison with NaN.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/c4dfd962
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/c4dfd962
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/c4dfd962
Branch: refs/heads/master
Commit: c4dfd9626b46d9a91d9aab30b82a8e4080354933
Parents: 7fd7035
Author: Chris Gavin <ch...@chrisgavin.me>
Authored: Sun May 7 11:04:12 2017 +0100
Committer: Chris Gavin <ch...@chrisgavin.me>
Committed: Sun May 7 19:07:26 2017 +0100
----------------------------------------------------------------------
guacamole-common-js/src/main/webapp/modules/Parser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/c4dfd962/guacamole-common-js/src/main/webapp/modules/Parser.js
----------------------------------------------------------------------
diff --git a/guacamole-common-js/src/main/webapp/modules/Parser.js b/guacamole-common-js/src/main/webapp/modules/Parser.js
index 2be6fed..0f6066e 100644
--- a/guacamole-common-js/src/main/webapp/modules/Parser.js
+++ b/guacamole-common-js/src/main/webapp/modules/Parser.js
@@ -121,7 +121,7 @@ Guacamole.Parser = function() {
// Parse length
var length = parseInt(buffer.substring(element_end+1, length_end));
- if (length == NaN)
+ if (isNaN(length))
throw new Error("Non-numeric character in element length.");
// Calculate start of element
[2/2] incubator-guacamole-client git commit: GUACAMOLE-295: Merge fix
for incorrect direct comparison against NaN.
Posted by mj...@apache.org.
GUACAMOLE-295: Merge fix for incorrect direct comparison against NaN.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/0bec6321
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/0bec6321
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/0bec6321
Branch: refs/heads/master
Commit: 0bec63219c521d68840c8aabe76c4f734c991d37
Parents: 1c0ee41 c4dfd96
Author: Michael Jumper <mj...@apache.org>
Authored: Sun May 7 11:11:48 2017 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Sun May 7 11:11:48 2017 -0700
----------------------------------------------------------------------
guacamole-common-js/src/main/webapp/modules/Parser.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------