Closed Richard-Wai closed 3 years ago
After having some time to really sit-down and look at this issue, the solution became very obvious. The patch does two things:
The result of this now is that the user will get at least 8KB of an error message if the git command fails, and otherwise, no matter how chatty, if git competes successfully, everything will be OK.
User made a report via Reddit.
When caching git repositories, the git command has it's STDOUT and STDERR captured into separate Bounded Strings. These Bounded Strings have a limit of 2048 (Characters). Some users may experience these buffers being overflowed, causing AURA to fail to cache the repository.
This decision was made out of a security-minded defensive coding approach. Generally we don't want to take in unbounded data from an uncontrolled source. In this case, we don't know if we're truly executing git.
However, considering where AURA is generally used, this might be an acceptable risk.
Will consider changing these buffers to unbounded strings.