]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/include/std/streambuf
re PR libstdc++/47921 (pbump will overflow when input n is larger than 2G-1)
[thirdparty/gcc.git] / libstdc++-v3 / include / std / streambuf
index 0121ac2de9884c9979907193bbd99a7d6cf46d8e..b46efec460106b98492c3e2d2eb898cb8f80be9b 100644 (file)
@@ -769,6 +769,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       }
 #endif
 
+      // Also used by specializations for char and wchar_t in src.
+      void 
+      __safe_gbump(streamsize __n) { _M_in_cur += __n; }
+
+      void
+      __safe_pbump(streamsize __n) { _M_out_cur += __n; }
+
     private:
       // _GLIBCXX_RESOLVE_LIB_DEFECTS
       // Side effect of DR 50.