summaryrefslogtreecommitdiff
path: root/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp')
-rw-r--r--emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp b/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp
new file mode 100644
index 000000000000..54e3c3a221a0
--- /dev/null
+++ b/emulators/virtualbox-ose/files/patch-src-VBox-Runtime-common-misc-uri.cpp
@@ -0,0 +1,14 @@
+--- src/VBox/Runtime/common/misc/uri.cpp.orig 2013-12-18 11:10:34.000000000 -0500
++++ src/VBox/Runtime/common/misc/uri.cpp 2013-12-19 20:57:32.000000000 -0500
+@@ -132,7 +132,10 @@
+ /* % encoding means the percent sign and exactly 2 hexadecimal
+ * digits describing the ASCII number of the character. */
+ ++iIn;
+- char szNum[] = { pszString[iIn++], pszString[iIn++], '\0' };
++ char szNum[3];
++ szNum[0] = pszString[iIn++];
++ szNum[1] = pszString[iIn++];
++ szNum[2] = '\0';
+ uint8_t u8;
+ rc = RTStrToUInt8Ex(szNum, NULL, 16, &u8);
+ if (RT_FAILURE(rc))