Commit Graph

68 Commits

Author SHA1 Message Date
Guido van Rossum 7d47c9e38a Patch by Jim Ahlstrom to add crc32, a useful checksum function
(e.g. used for ZIP files).

The patch includes code that says:
+  Copyright (C) 1986 Gary S. Brown.  You may use this program, or
+  code or tables extracted from it, as desired without restriction.

My interpretation (and Jim's) is that Gary S Brown has no claims under
copyright, patent or other rights or interests.  Lawyers might disagree.
2000-02-16 21:11:52 +00:00
Guido van Rossum 2db4f47fdd Patch by Jason Trowbridge. (Followup to his PR#110.) (Slightly
reformatted.)

- Illegal padding is now ignored.  (Recommendation by GvR.)

- Padding no longer removes characters from data string (resulting in
lost data/strings with negative lengths).

- Illegal characters outside the ASCII range are now ignored, instead
of possibly being remapped to a valid character.
1999-10-19 19:05:14 +00:00
Guido van Rossum eba24bb920 Fix PR#110 -- bad input ("====") for a2b_base64() caused it to call
_PyString_Resize() with a negative size.
1999-10-19 04:47:13 +00:00
Guido van Rossum 3886bb6997 Add DL_EXPORT() to all modules that could possibly be used
on BeOS or Windows.
1998-12-04 18:50:17 +00:00
Guido van Rossum 7e48898d86 Use the t# format where appropriate. Greg Stein. 1998-10-08 02:25:24 +00:00
Guido van Rossum 7dbb48a67f Converted to new exception style (Jack) 1997-10-08 15:26:07 +00:00
Guido van Rossum 5c159bd855 Plug memory leak (DECREF doc string properly after inserting in dict). 1997-08-04 23:55:25 +00:00
Guido van Rossum 1243ae7f07 Allow '@' character as end of line padding in uuencode format.
Not sure why this is generated, but this fixes a problem with a
particular file that was received with the following final line:

F-WE<-*A5]AY]%7>8'&!!(_Y<F*55_"*%46"<OFG=>_5(F/\'``!@
1997-07-11 18:36:28 +00:00
Roger E. Masse 5f4ce18898 Renamed. 1997-01-16 17:10:22 +00:00
Guido van Rossum 9c6ba5e901 Fix leak involving BuildValue("...O..."). 1997-01-12 20:02:04 +00:00
Guido van Rossum d266eb460e New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
Guido van Rossum 485f2da5a1 Add unsigned char cast 1996-02-25 04:50:30 +00:00
Jack Jansen ba1de3bafb Fixed off-by-one error in rle-decode, and allow whitespace in base64
ascii input (thanks to Donald Beaudry for pointing these out)
1996-01-22 10:47:15 +00:00
Jack Jansen 5d9579707f Allow '@' for ' ' in uuencoded files. 1995-11-14 10:35:19 +00:00
Jack Jansen 84bbc2e3e3 Added base64 support 1995-10-04 16:38:44 +00:00
Jack Jansen 0223aa11d8 Obscure bugfix 1995-08-31 13:44:23 +00:00
Jack Jansen eaeb1c825d Added missing 'leftchar' initializer. 1995-08-14 12:17:57 +00:00
Jack Jansen 727811907c Helper module for uuencode and binhex coders 1995-08-07 14:34:15 +00:00