]>
git.proxmox.com Git - libgit2.git/blob - tests/delta/apply.c
1 #include "clar_libgit2.h"
5 void test_delta_apply__read_at_off(void)
7 unsigned char base
[16] = { 0 }, delta
[] = { 0x10, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0x10, 0x00, 0x00 };
11 cl_git_fail(git_delta_apply(&out
, &outlen
, base
, sizeof(base
), delta
, sizeof(delta
)));
14 void test_delta_apply__read_after_limit(void)
16 unsigned char base
[16] = { 0 }, delta
[] = { 0x10, 0x70, 0xff };
20 cl_git_fail(git_delta_apply(&out
, &outlen
, base
, sizeof(base
), delta
, sizeof(delta
)));