Fix unsafe usage in CPDF_StreamContentParser

Convert one local to std::array<>.

Bug: pdfium:2155
Change-Id: I1dfc606bf03454c68a5f87ceba7f550ae3003eaf
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/119510
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Thomas Sepez <tsepez@google.com>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
index d74f3f3..7b803f9 100644
--- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp
+++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp
@@ -4,14 +4,10 @@
 
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
-#if defined(UNSAFE_BUFFERS_BUILD)
-// TODO(crbug.com/pdfium/2154): resolve buffer safety issues.
-#pragma allow_unsafe_buffers
-#endif
-
 #include "core/fpdfapi/page/cpdf_streamcontentparser.h"
 
 #include <algorithm>
+#include <array>
 #include <map>
 #include <memory>
 #include <utility>
@@ -1612,7 +1608,7 @@
 }
 
 void CPDF_StreamContentParser::ParsePathObject() {
-  float params[6] = {};
+  std::array<float, 6> params = {};
   int nParams = 0;
   int last_pos = m_pSyntax->GetPos();
   while (true) {