diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-02 19:55:28 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2007-02-02 19:55:28 +0000 |
commit | 89cf3d8d1839cfc261c48718bf699e9cfca83d81 (patch) | |
tree | 5ecca3f2eeb0355935ee3af29a849b6d60b8e188 /xdelta1/xdelta.c | |
parent | fd99e24f74212a442516acd28b8067d81e894a84 (diff) |
patch_command: warn about parse error for invalid delta
delta_command: check gzclose() errors to avoid producing an invalid delta
Diffstat (limited to 'xdelta1/xdelta.c')
-rwxr-xr-x | xdelta1/xdelta.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xdelta1/xdelta.c b/xdelta1/xdelta.c index 6d73fa2..890643d 100755 --- a/xdelta1/xdelta.c +++ b/xdelta1/xdelta.c | |||
@@ -1423,6 +1423,10 @@ xdp_control_read (XdeltaStream *cont_in) | |||
1423 | 1423 | ||
1424 | if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont)) | 1424 | if (! serializeio_unserialize_generic_acceptable (src, ST_XdeltaControl | ST_Version0Control, & type, (void**) & cont)) |
1425 | { | 1425 | { |
1426 | /* TODO: the warning below was added in 1.1.5 after a bug report | ||
1427 | * regarding an invalid delta, which would fail in patch here: | ||
1428 | * It's unclear whether this is the "right" place to print the | ||
1429 | * error. */ | ||
1426 | g_warning ("patch parse error\n"); | 1430 | g_warning ("patch parse error\n"); |
1427 | return NULL; | 1431 | return NULL; |
1428 | } | 1432 | } |