[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser] 01/65: Bug 1784588 - Fix SplitDriverVersion when the string has less than 4 numbers. r=aosmond



This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch geckoview-102.3.0esr-12.0-1
in repository tor-browser.

commit a6a8ba349fd61592a03bc95a64c9815a7d3970a2
Author: Jamie Nicol <jnicol@xxxxxxxxxxx>
AuthorDate: Thu Aug 18 12:57:47 2022 +0000

    Bug 1784588 - Fix SplitDriverVersion when the string has less than 4 numbers. r=aosmond
    
    Differential Revision: https://phabricator.services.mozilla.com/D154897
---
 widget/GfxDriverInfo.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/widget/GfxDriverInfo.h b/widget/GfxDriverInfo.h
index e16ca1e019fa..c1a3789dc024 100644
--- a/widget/GfxDriverInfo.h
+++ b/widget/GfxDriverInfo.h
@@ -460,6 +460,9 @@ inline bool SplitDriverVersion(const char* aSource, char* aAStr, char* aBStr,
   // Add last terminator.
   MOZ_ASSERT(destIdx < 4 && destPos <= 4);
   dest[destIdx][destPos] = 0;
+  for (int unusedDestIdx = destIdx + 1; unusedDestIdx < 4; unusedDestIdx++) {
+    dest[unusedDestIdx][0] = 0;
+  }
 
   if (destIdx != 3) {
     return false;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits