~ubuntu-branches/ubuntu/hardy/clamav/hardy-security

« back to all changes in this revision

Viewing changes to libclamav/binhex.c

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-02-23 10:20:16 UTC
  • mfrom: (0.28.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100223102016-oyc56y6ddhrsznh6
Tags: 0.95.3+dfsg-1ubuntu0.09.04~hardy2.2
No change rebuild from hardy-backports per microrelease exception

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
#include "clamav-config.h"
95
95
#endif
96
96
 
97
 
#ifndef CL_DEBUG
98
 
#define NDEBUG  /* map CLAMAV debug onto standard */
99
 
#endif
100
 
 
101
97
#ifdef CL_THREAD_SAFE
102
98
#ifndef _REENTRANT
103
99
#define _REENTRANT      /* for Solaris 2.8 */
149
145
        start = buf = mmap(NULL, size, PROT_READ, MAP_PRIVATE, desc, 0);
150
146
        if(buf == MAP_FAILED) {
151
147
                messageDestroy(m);
152
 
                return CL_EMEM;
 
148
                return CL_EMAP;
153
149
        }
154
150
 
155
151
        cli_dbgmsg("mmap'ed binhex file\n");
198
194
 
199
195
        if(binhexBegin(m) == NULL) {
200
196
                messageDestroy(m);
201
 
                cli_errmsg("No binhex line found\n");
 
197
                cli_dbgmsg("No binhex line found\n");
202
198
                return CL_EFORMAT;
203
199
        }
204
200
 
215
211
 
216
212
        if(fb)
217
213
                return CL_CLEAN;        /* a lie - but it gets things going */
218
 
        return CL_EIO;  /* probably CL_EMEM, but we can't tell at this layer */
 
214
        /* return CL_EIO; */    /* probably CL_EMEM, but we can't tell at this layer */
 
215
        return CL_EMEM;
219
216
#endif
220
217
}