kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Fix potential buffer overflow in attributes parsing. #40

Closed NEricN closed 7 years ago

NEricN commented 7 years ago

The size is now checked to make sure the data is not accessed at a potentially unsafe index.

codecov-io commented 7 years ago

Codecov Report

Merging #40 into master will decrease coverage by -0.02%. The diff coverage is 100%.

@@            Coverage Diff            @@
##           master     #40      +/-   ##
=========================================
- Coverage   62.52%   62.5%   -0.02%     
=========================================
  Files          14      14              
  Lines        3877    3881       +4     
  Branches     1041    1043       +2     
=========================================
+ Hits         2424    2426       +2     
  Misses       1023    1023              
- Partials      430     432       +2
Impacted Files Coverage Δ
src/document.c 73.11% <100%> (-0.05%) :x:

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 67d3023...70de13e. Read the comment docs.

kjdev commented 7 years ago

Thanks.