Commit Graph

50 Commits

Author SHA1 Message Date
Taras Glek
82ac2d11bf Bug 598416: add try/catch in places in nsZipReader.cpp that access mmaped memory directly r=bsmedberg a=blocking2.0-betaN 2010-11-11 12:13:48 -08:00
Taras Glek
ade2669d85 Bug 590242 - Do not open omnijar 3x r=mwu, sr=bsmedberg, a=beltzner 2010-09-09 14:01:00 -07:00
Michael Wu
530165f48e Bug 533038 - 2. Generalize nsZipArchive and nsZipHandle to read from different sources, r=taras a=blocking-beta6 2010-09-08 20:37:34 -07:00
Michal Novotny
b3f64e2c43 Bug 525741 - two JAR tests fail if modification date of their files is on day daylight saving time starts or ends and after time change. r=dtownsend,tglek 2009-12-16 00:01:08 +01:00
Taras Glek
2538f59e30 Bug 536911: fix null dereference topcash r=alfredkayser
--HG--
extra : rebase_source : 60f760586ac33354e98e48015cecc4762b3d181a
2009-12-31 10:10:20 -08:00
Jae-Seong Lee-Russo
984b808973 Bug 530409 - Replace PR_MIN/PR_MAX with NS_MIN/NS_MAX in /modules/libjar/, r=tglek 2009-12-13 09:32:10 -08:00
Alfred Kayser
2f6c7190a3 Bug 511754 - make nsZipItems point at ZipCentral references to mmapped jar area r=tglek 2009-10-17 17:54:54 +02:00
Alfred Kayser
bfd0a72d2f Bug 510844 - Remove memcpy()s for compressed jar reading. r=taras 2009-10-04 19:20:45 +02:00
Marco Bonardo
17088f5fbf Backed out changeset 3cab7a0c2c3d due to mochitest timeout. 2009-09-03 14:15:19 +02:00
Alfred Kayser
74aa932ce9 Bug 510844 - "Remove memcpy()s for compressed jar reading" [r=tglek] 2009-09-01 14:47:00 -05:00
Reed Loden
a1fe49b40d Backing out 510844 to fix unittest failure on CLOSED TREE. 2009-09-01 16:20:47 -05:00
Alfred Kayser
6eeff2e525 Bug 510844 - "Remove memcpy()s for compressed jar reading" [r=tglek] 2009-09-01 14:47:00 -05:00
Taras Glek
2fffd205ae Bug 504864: mmap io for JARs r=bsmedberg 2009-08-12 13:50:12 -07:00
Serge Gautherie
10269466ce Backed out "changeset: ff9eba3f8224" of
Bug 504864 - mmap io for JARs; r=benjamin
which does not compile on Windows
2009-08-08 12:40:50 +02:00
Taras Glek
b71d0123c6 Bug 504864 - mmap io for JARs; r=benjamin 2009-08-08 12:07:39 +02:00
Fred Jendrzejewski
424883d380 Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
dveditz@cruzio.com
8922632b9a bug 422118 crash reading malformed zip archives. r=biesi, sr=bzbarsky, a=schrep 2008-03-19 12:28:38 -07:00
dbaron%dbaron.org
34b9845adc Don't close the same file descriptors twice. b=367817 r+sr=darin 2007-01-25 23:05:22 +00:00
bzbarsky%mit.edu
36003c446d Filter out entries for files in subdirectories even at the root. Bug 367459,
patch by Alfred Kayser <alfredkayser@nl.ibm.com>, r+sr=bzbarsky
2007-01-22 01:47:50 +00:00
gavin%gavinsharp.com
c877f957f2 Bug 337561: Merge nsJARDirectoryInputStream into nsJARInputStream, patch by Alfred Kayser <alfredkayser@nl.ibm.com>, r+sr=darin 2006-10-10 13:24:57 +00:00
gavin%gavinsharp.com
9cd66c5f4d back out bug 337561 2006-09-24 16:23:31 +00:00
gavin%gavinsharp.com
461618d03d Bug 337561: Merge nsJARDirectoryInputStream into nsJARInputStream, patch by Alfred Kayser <alfredkayser@nl.ibm.com>, r+sr=darin 2006-09-24 15:13:57 +00:00
darin%meer.net
4a94571cee fixes bug 214672 "Further optimization and correctness improvements of libjar: streamlining nsJarInputStream" patch by Alfred Kayser <alfredkayser@nl.ibm.com>, r=jwalden, sr=darin 2006-05-02 19:33:09 +00:00
jwalden%mit.edu
ac773c0354 Bug 309296 - RFE: directory listing for jar:. r=darin, sr=bzbarsky 2006-03-29 22:10:37 +00:00
darin%meer.net
eb3847a802 fixes bug 318193 "Input streams are not implemented consistently" r=biesi sr=bz 2006-01-02 02:30:32 +00:00
gerv%gerv.net
9998966b02 Bug 320174: correct malformed licence headers. Patch by Jeff Walden <jwalden@mit.edu>, r=gerv. 2005-12-15 13:48:48 +00:00
gerv%gerv.net
8b8dde7d95 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-18 22:01:16 +00:00
bryner%brianryner.com
5cd0bcdb7a Fix build on gcc 3.4 by removing extra semicolons (bug 218551). r/sr=dbaron, a=brendan. 2003-09-07 22:56:05 +00:00
alecf%netscape.com
0527238c0a fix for bug 189528 - do on-demand decompression of items in a .jar file
instead of allocating all the data into one big buffer, keep a small input buffer around and decompress directly into a client's read buffer..
r=dougt, sr=darin
2003-03-14 18:59:51 +00:00
darin%netscape.com
99e45ceed4 fixes bug 191227 "file uploads hang (especially w/ slower connections or
slower servers)" r=dougt sr=bz a=dbaron
2003-01-31 02:00:45 +00:00
dbaron%dbaron.org
acdd4e46c0 Bug 178643: Remove uses of NS_INIT_ISUPPORTS, since it is no longer needed. r=timeless sr=jag 2003-01-08 22:05:52 +00:00
dougt%netscape.com
68faeb5241 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
darin%netscape.com
281c86ec58 b=99165 Freeze nsIInputStream nsIOutputStream (not yet frozen... but close)
r=dougt sr=shaver a=asa
2002-03-12 00:59:06 +00:00
dp%netscape.com
75409d6e33 bug 116191 Making nsZipItem a member of nsJarInputStream rather than a
pointer. Saves a 16 byte allocation on per jar file read. r=darin, sr=dveditz
2001-12-21 05:57:39 +00:00
brendan%mozilla.org
6d895baf1d Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-21 20:51:34 +00:00
blizzard%redhat.com
b0f8b91746 Back out brendan's checkin to try and get linux starting up again. 2001-08-17 19:45:11 +00:00
brendan%mozilla.org
b00819c93c - Better failure codes from nsXULPrototypeScript::Deserialize.
- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Writer or Updater must close after the Reader,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.
2001-08-17 09:52:55 +00:00
dveditz%netscape.com
6eb62d68de Fix 72551 speed up zip archive opening. r=ssu,sr=waterson 2001-04-03 06:35:13 +00:00
dougt%netscape.com
2c6cbb31de Implementing ReadSegments. r/sr=darin@netscape.com 2001-03-29 07:21:43 +00:00
darin%netscape.com
6a7567992b Bug 62566. nsIChannel::AsyncWrite interface revision and related cleanup.
r=dougt@netcape.com, sr=mscott@netscape.com.
2001-01-23 22:10:34 +00:00
warren%netscape.com
cd56c0575b Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
warren%netscape.com
9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
warren%netscape.com
e05eef45e9 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan 2000-08-22 07:03:33 +00:00
mstoltz%netscape.com
a8545c4aed Fixing 40159 and 44822, both [nsbeta2+] regressions on signed scripts. r=sgehani 2000-07-12 03:10:33 +00:00
mstoltz%netscape.com
5c520e108c Fixed crash when calling nsJARInputStream from nsJARChannel. 2000-04-05 00:12:20 +00:00
warren%netscape.com
283c34222c Fixing bugs in jar input streams for jar: protocol. 2000-03-30 07:41:37 +00:00
mstoltz%netscape.com
8df8c26172 Crasher fixes and optimizations to jar signature verification. bug=7270 r=norris 2000-02-14 01:57:01 +00:00
mstoltz%netscape.com
a5072b2c43 Implementation of JAR manifest parser, part of signature verification for signed scripts. bug=7270 r=norris 2000-01-29 00:03:57 +00:00
mstoltz%netscape.com
54b6d77584 Created helper class nsZipRead to hold read state information. That way
one nsJAR can support multiple input streams. r=norris
1999-11-02 23:46:09 +00:00
mstoltz%netscape.com
08143e312c Added GetInputStream function to nsJAR in order to extract files into memory rather than to disk. Created nsJARInputStream to carry this data. Most of the code for this change went into nsZipArchive, which now handles either file output or output to memory. bug=16077 r=dveditz 1999-10-26 19:43:26 +00:00