haiku/src/kits
Michael Lotz d98a3e026c package kit: Fix corruption of last package chunk on update.
PackageFileHeapWriter::_UnwriteLastPartialChunk() used ReadData() to
extract the last partial chunk into the pending buffer. This indirectly
calls PackageFileHeapWriter::ReadAndDecompressChunk(), which assumes
data past the last full chunk to come from the pending data buffer.

Since the pending data buffer is not filled in at that point, the call
to ReadAndDecompressChunk() simply did nothing, leaving the object with
a correctly sized but completely nulled pending data buffer. The last
partial chunk of a package would therefore always get corrupted when
updating a package.

Fixes #11306 that provided a reduced test case that happened to corrupt
the only chunk of a package, nulling the .PackageInfo and therefore
making the error more obvious as subsequent parsing of the info failed.
2014-10-09 23:41:39 +02:00
..
app BNotification: correct SetIcon documentation 2014-10-01 19:01:15 +13:00
bluetooth Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
debug Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
device Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
game Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
interface re-add the _BMCItem_ class for binary compatibility. 2014-10-08 17:45:20 +02:00
locale Add parsing support to BTimeFormat. 2014-10-09 13:35:23 +02:00
mail Merge branch 'gcc_syslibs' 2014-08-13 13:50:29 +02:00
media Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
midi BSoftSynth: Select the soundfont from the settings file 2014-09-28 18:23:57 +02:00
midi2 Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
network Move Geolocation to kits/shared and make it private. 2014-10-02 00:32:48 +02:00
package package kit: Fix corruption of last package chunk on update. 2014-10-09 23:41:39 +02:00
print Make sure there's a space in front of B_UTF8_ELLIPSIS. 2014-06-16 17:55:34 +02:00
screensaver Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
shared Look for private key of default geolocation service. 2014-10-02 00:32:48 +02:00
storage Partition.cpp: fix function prototype. 2014-09-15 16:40:25 +12:00
support Add setters to BDate and BCalendarView 2014-09-30 15:38:24 +02:00
textencoding Merge branch 'gcc_syslibs' 2014-08-13 13:50:29 +02:00
tracker BMessageFormat: parse the pattern at construction 2014-10-08 15:12:48 +02:00
translation Merge branch 'gcc_syslibs' 2014-08-13 13:50:29 +02:00
CountryFlags.rdef Merge liblocale.so into libbe.so. 2012-04-04 22:44:42 +02:00
Jamfile Use libstdc++, libsupc++ and libgcc from gcc_syslibs. 2014-08-13 13:32:44 +02:00
LanguageFlags.rdef Merge liblocale.so into libbe.so. 2012-04-04 22:44:42 +02:00
libbe_test_versions
libbe_version.rdef Rework the handling of catalog loading in locale kit : 2011-10-31 08:57:09 +00:00
libbe_versions