yihui / mime

Map filenames to MIME types
https://cran.rstudio.com/package=mime
32 stars 15 forks source link

slice_buffer buffer overflow bugfix #15

Closed michalkouril closed 3 years ago

michalkouril commented 3 years ago

In rare circumstances slice_buffer is called with i+size equal to the buffer size. This is not handled well and the buffer after the slice_buffer call is corrupt.

codecov-commenter commented 3 years ago

Codecov Report

Merging #15 (cd098da) into master (bfefd88) will not change coverage. The diff coverage is 0.00%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #15   +/-   ##
======================================
  Coverage    5.88%   5.88%           
======================================
  Files           4       4           
  Lines         170     170           
======================================
  Hits           10      10           
  Misses        160     160           
Impacted Files Coverage Δ
R/parse.R 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bfefd88...cd098da. Read the comment docs.