View | Details | Raw Unified | Return to bug 16900
Collapse All | Expand All

(-)apt-0.5.15lorg2.orig/apt-pkg/pkgcachegen.cc (-1 / +1 lines)
Lines 228-234 Link Here
228
228
229
   FoundFileDeps |= List.HasFileDeps();
229
   FoundFileDeps |= List.HasFileDeps();
230
230
231
   if (Cache.HeaderP->PackageCount >= (1ULL<<sizeof(Cache.PkgP->ID)*8)-1)
231
   if (Cache.HeaderP->PackageCount >= UINT_MAX)
232
      return _error->Error(_("Wow, you exceeded the number of package "
232
      return _error->Error(_("Wow, you exceeded the number of package "
233
			     "names this APT is capable of."));
233
			     "names this APT is capable of."));
234
   if (Cache.HeaderP->VersionCount >= (1ULL<<(sizeof(Cache.VerP->ID)*8))-1)
234
   if (Cache.HeaderP->VersionCount >= (1ULL<<(sizeof(Cache.VerP->ID)*8))-1)
(-)apt-0.5.15lorg2.orig/apt-pkg/pkgcache.h (-1 / +1 lines)
Lines 227-233 Link Here
227
   unsigned char InstState;         // Flags
227
   unsigned char InstState;         // Flags
228
   unsigned char CurrentState;      // State
228
   unsigned char CurrentState;      // State
229
   
229
   
230
   unsigned short ID;
230
   unsigned int ID;
231
   unsigned long Flags;
231
   unsigned long Flags;
232
};
232
};
233
233

Return to bug 16900