]> git.pld-linux.org Git - packages/poldek.git/blob - 64k-packages.patch
poldek-config: add -c option
[packages/poldek.git] / 64k-packages.patch
1 From a46a0bc806331e419207ae951864243946892b9a Mon Sep 17 00:00:00 2001
2 From: Marcin Banasiak <marcin.banasiak@gmail.com>
3 Date: Wed, 20 Apr 2016 19:56:34 +0200
4 Subject: Fix crash when loading more than 64k packages (lp#1571324)
5
6
7 diff --git a/capreqidx.h b/capreqidx.h
8 index 0311e76..327e1f4 100644
9 --- a/capreqidx.h
10 +++ b/capreqidx.h
11 @@ -28,8 +28,10 @@ struct capreq_idx {
12  
13  struct pkg;
14  struct capreq_idx_ent {
15 -    int16_t items;
16 -    int32_t _size;
17 +
18 +    unsigned int items;                /* number of elements stored in this entry */
19 +    unsigned int _size;                /* number of elements for which memory is already allocated */
20 +
21      union {
22          struct pkg *pkg;
23          struct pkg **pkgs;       /* pkgs list */
24 -- 
25 cgit v0.10.2
26
This page took 0.058402 seconds and 3 git commands to generate.