diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-02-07 23:05:23 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-02-07 23:16:55 +0100 |
commit | 46b8aadbd6f4673aad27f6425f48a3b3ac5c88dc (patch) | |
tree | ac64736caa7b360207c2286a31d46835173bd718 /AUTHORS | |
parent | cbc538fe69577068d5676428c77287d82123a704 (diff) | |
download | guix-46b8aadbd6f4673aad27f6425f48a3b3ac5c88dc.tar.gz |
serialization: Check for EOF and incomplete input conditions.
Fixes <http://bugs.gnu.org/19756>. Reported by <sleep_walker@suse.cz>. * guix/serialization.scm (currently-restored-file): New variable. (get-bytevector-n*): New procedure. (read-int, read-long-long, read-string, read-latin1-string, read-contents): Use it instead of 'get-bytevector-n'. (restore-file): Parameterize 'currently-restored-file' and set it. * tests/nar.scm ("restore-file with incomplete input"): New test.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions