~ubuntu-branches/ubuntu/dapper/clamav/dapper-security

« back to all changes in this revision

Viewing changes to libclamav/unarj.c

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2009-04-29 17:17:14 UTC
  • mfrom: (1.1.8 upstream) (0.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090429171714-9rb08pcxwl02e0bq
Tags: 0.94.dfsg.2-1ubuntu0.3~dapper2
No change rebuild from backports

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Extract component parts of ARJ archives.
3
3
 *
4
 
 *  Copyright (C) 2007 trog@uncon.org
 
4
 *  Copyright (C) 2007-2008 Sourcefire, Inc.
 
5
 *
 
6
 *  Authors: Trog
5
7
 *
6
8
 *  This program is free software; you can redistribute it and/or modify
7
9
 *  it under the terms of the GNU General Public License version 2 as
146
148
#endif
147
149
 
148
150
typedef struct arj_decode_tag {
 
151
        unsigned char *text;
149
152
        int fd;
150
 
        unsigned char *text;
151
153
        uint16_t blocksize;
152
154
        uint16_t bit_buf;
153
 
        unsigned char sub_bit_buf;
154
155
        int bit_count;
155
156
        uint32_t comp_size;
156
157
        int16_t getlen, getbuf;
159
160
        unsigned char c_len[NC];
160
161
        uint16_t c_table[CTABLESIZE];
161
162
        unsigned char pt_len[NPT];
 
163
        unsigned char sub_bit_buf;
162
164
        uint16_t pt_table[PTABLESIZE];
163
165
        int status;
164
166
} arj_decode_t;