Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memfs: Fix memory FS implementation bug #20

Merged
merged 1 commit into from
Apr 15, 2017

Conversation

ajnavarro
Copy link
Contributor

Now, using memory FS, is possible to seek outside the size of the file and write something, adding '0' between the old file content and the new one.

@codecov
Copy link

codecov bot commented Apr 12, 2017

Codecov Report

Merging #20 into master will increase coverage by 0.62%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   83.71%   84.34%   +0.62%     
==========================================
  Files           5        5              
  Lines         393      396       +3     
==========================================
+ Hits          329      334       +5     
+ Misses         39       37       -2     
  Partials       25       25
Impacted Files Coverage Δ
memfs/memory.go 88.31% <100%> (+1.11%) ⬆️

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 bf5cdf7...85a405f. Read the comment docs.

Now, using memory FS, is possible to seek outside the size of the file and write something, adding '0' between the old file content and the new one.
@ajnavarro ajnavarro force-pushed the fix/memory-seek-and-write-oob branch from 68627ec to 85a405f Compare April 12, 2017 11:03
@mcuadros mcuadros mentioned this pull request Apr 14, 2017
@mcuadros mcuadros force-pushed the master branch 5 times, most recently from 96429fb to 88d97b7 Compare April 14, 2017 22:35
@mcuadros mcuadros merged commit 85a405f into src-d:master Apr 15, 2017
@ajnavarro ajnavarro deleted the fix/memory-seek-and-write-oob branch April 17, 2017 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants