~ubuntu-branches/ubuntu/jaunty/squid3/jaunty-security

« back to all changes in this revision

Viewing changes to src/StoreMetaUnpacker.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2008-04-03 01:34:07 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080403013407-g4ppxoyao3efx50n
Tags: 3.0.STABLE4-1

New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
 
2
2
/*
3
 
 * $Id: StoreMetaUnpacker.cc,v 1.5 2007/04/30 16:56:09 wessels Exp $
 
3
 * $Id: StoreMetaUnpacker.cc,v 1.5.4.2 2008/02/25 23:08:50 amosjeffries Exp $
4
4
 *
5
5
 * DEBUG: section 20    Storage Manager Swapfile Unpacker
6
6
 * AUTHOR: Robert Collins
37
37
#include "StoreMetaUnpacker.h"
38
38
#include "StoreMeta.h"
39
39
 
40
 
off_t const StoreMetaUnpacker::MinimumBufferLength = sizeof(char) + sizeof(int);
 
40
int const StoreMetaUnpacker::MinimumBufferLength = sizeof(char) + sizeof(int);
41
41
 
42
42
bool
43
43
StoreMetaUnpacker::isBufferSane()
98
98
 
99
99
    StoreMeta *newNode = StoreMeta::Factory(type, length, &buf[position]);
100
100
 
101
 
    if (!newNode)
102
 
        return false;
103
 
 
104
 
    tail = StoreMeta::Add (tail, newNode);
 
101
    if (newNode)
 
102
        tail = StoreMeta::Add (tail, newNode);
105
103
 
106
104
    position += length;
107
105