]> OCCT Git - occt.git/commit
Coding - Dangerous use of 'cin' (#681) IR master
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sun, 17 Aug 2025 20:03:18 +0000 (21:03 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Aug 2025 20:03:18 +0000 (21:03 +0100)
commit5c814b0f0fff9c4a6285b74b2bab23dd00a25ea2
tree584916dfa9d166f82054b0a27ee17088b2e9ec75
parent5c8756830f73d5215559e23738f23cbc97fa5179
Coding - Dangerous use of 'cin' (#681)

- Replaced hardcoded buffer sizes with `constexpr size_t aBufferSize` constants
- Added `width()` calls to input streams before reading to prevent buffer overflows
- Applied consistent buffer size management across multiple input operations
src/DataExchange/TKXSBase/IFSelect/IFSelect_Functions.cxx
src/Draw/TKTopTest/GeometryTest/GeometryTest_ConstraintCommands.cxx
src/Draw/TKXSDRAWIGES/XSDRAWIGES/XSDRAWIGES.cxx