]> git.r.bdr.sh - rbdr/mobius/commit
Fix file corruption bug for commented files
authorJeff Halter <redacted>
Tue, 24 May 2022 23:05:19 +0000 (16:05 -0700)
committerJeff Halter <redacted>
Tue, 24 May 2022 23:05:19 +0000 (16:05 -0700)
commitbb7fe19f7e331f0e8c79f4da61543981acd36422
tree731d0ef86ec468b90c0b44b43f282f2df04e0496
parent90606c7524caa82180dad8f2ce613f1c07385b29
Fix file corruption bug for commented files

This fixes a bug that happens when an uploaded file contains a file comment.  The bug happens because the comment byte length was not included when calculating the length of the information header, causing the comment bytes to be appendedto the file.
hotline/flattened_file_object.go
hotline/flattened_file_object_test.go