daemon: write-file: Check range of size parameter (RHBZ#597135).
authorRichard Jones <rjones@redhat.com>
Tue, 1 Jun 2010 15:18:53 +0000 (16:18 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 2 Jun 2010 18:41:33 +0000 (19:41 +0100)
commitfb0ba47674e3f17c6076b79cec0939960084716d
tree42f47d32d4af768127f3af02a1679136b916a69e
parent8e620995b5a16630781981064c78cd8675982387
daemon: write-file: Check range of size parameter (RHBZ#597135).

This also adds a regression test.

For stable-1.2 branch:
 - cherry picked from commit 9733d4746988b3a072d8bb1daac4b9795b8f4134
 - modify the regression test to apply against the generator
daemon/file.c
src/generator.ml