Skip to main content

apply_delta

Function apply_delta 

Source
pub fn apply_delta(base: &[u8], delta: &[u8]) -> Result<Vec<u8>>
Expand description

Apply a git delta (base + delta instructions → reconstructed object).

Exposed for fuzzing: delta is fully attacker-controlled, so this must never panic or read out of bounds regardless of input.

§Errors

Returns GitError on a malformed delta (bad opcode, out-of-range copy, or a size disagreeing with the delta header).