Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
[privoxy.git] / deanimate.c
similarity index 94%
rename from src/deanimate.c
rename to deanimate.c
index b411f90..b9592e8 100644 (file)
@@ -1,7 +1,7 @@
-const char deanimate_rcs[] = "$Id: deanimate.c,v 2.1 2002/08/26 11:06:27 sarantis Exp $";
+const char deanimate_rcs[] = "$Id: deanimate.c,v 1.12.2.1 2004/10/03 12:53:32 david__schmidt Exp $";
 /*********************************************************************
  *
- * File        :  $Source: /cvsroot/ijbswa/current/src/deanimate.c,v $
+ * File        :  $Source: /cvsroot/ijbswa/current/Attic/deanimate.c,v $
  *
  * Purpose     :  Declares functions to manipulate binary images on the
  *                fly.  High-level functions include:
@@ -40,11 +40,14 @@ const char deanimate_rcs[] = "$Id: deanimate.c,v 2.1 2002/08/26 11:06:27 saranti
  *
  * Revisions   :
  *    $Log: deanimate.c,v $
- *    Revision 2.1  2002/08/26 11:06:27  sarantis
- *    Fix typo failiure -> failure
- *
- *    Revision 2.0  2002/06/04 14:34:21  jongfoster
- *    Moving source files to src/
+ *    Revision 1.12.2.1  2004/10/03 12:53:32  david__schmidt
+ *    Add the ability to check jpeg images for invalid
+ *    lengths of comment blocks.  Defensive strategy
+ *    against the exploit:
+ *       Microsoft Security Bulletin MS04-028
+ *       Buffer Overrun in JPEG Processing (GDI+) Could
+ *       Allow Code Execution (833987)
+ *    Enabled with +inspect-jpegs in actions files.
  *
  *    Revision 1.12  2002/05/12 21:36:29  jongfoster
  *    Correcting function comments
@@ -139,7 +142,7 @@ void buf_free(struct binbuffer *buf)
  *          2  :  length = Desired minimum size
  *                
  *
- * Returns     :  0 on success, 1 on failure.
+ * Returns     :  0 on success, 1 on failiure.
  *
  *********************************************************************/
 int buf_extend(struct binbuffer *buf, size_t length)
@@ -180,7 +183,7 @@ int buf_extend(struct binbuffer *buf, size_t length)
  *          2  :  dst = Pointer to the destination binbuffer
  *          3  :  length = Number of bytes to be copied
  *
- * Returns     :  0 on success, 1 on failure.
+ * Returns     :  0 on success, 1 on failiure.
  *
  *********************************************************************/
 int buf_copy(struct binbuffer *src, struct binbuffer *dst, size_t length)
@@ -226,7 +229,7 @@ int buf_copy(struct binbuffer *src, struct binbuffer *dst, size_t length)
  *          1  :  src = Pointer to the source binbuffer
  *          2  :  offset = Offset to the desired byte
  *
- * Returns     :  The byte on success, or 0 on failure
+ * Returns     :  The byte on success, or 0 on failiure
  *
  *********************************************************************/
 unsigned char buf_getbyte(struct binbuffer *src, size_t offset)
@@ -255,7 +258,7 @@ unsigned char buf_getbyte(struct binbuffer *src, size_t offset)
  * Parameters  :
  *          1  :  buf = Pointer to the binbuffer
  *
- * Returns     :  0 on success, or 1 on failure
+ * Returns     :  0 on success, or 1 on failiure
  *
  *********************************************************************/
 int gif_skip_data_block(struct binbuffer *buf)
@@ -294,7 +297,7 @@ int gif_skip_data_block(struct binbuffer *buf)
  *          1  :  src = Pointer to the source binbuffer
  *          2  :  dst = Pointer to the destination binbuffer
  *
- * Returns     :  0 on success, or 1 on failure
+ * Returns     :  0 on success, or 1 on failiure
  *
  *********************************************************************/
 int gif_extract_image(struct binbuffer *src, struct binbuffer *dst)
@@ -359,7 +362,7 @@ int gif_extract_image(struct binbuffer *src, struct binbuffer *dst)
  *          3  :  get_first_image = Flag: If set, get the first image
  *                                        If unset (default), get the last
  *
- * Returns     :  0 on success, or 1 on failure
+ * Returns     :  0 on success, or 1 on failiure
  *
  *********************************************************************/
 int gif_deanimate(struct binbuffer *src, struct binbuffer *dst, int get_first_image)
@@ -525,7 +528,7 @@ write:
  * Parameters  :
  *          1  :  src = Pointer to the image binbuffer
  *
- * Returns     :  0 on success, or 1 on failure
+ * Returns     :  0 on success, or 1 on failiure
  *
  *********************************************************************/
 int jpeg_inspect(struct binbuffer *src, struct binbuffer *dst)