Branch: Tag:

2012-03-11

2012-03-11 16:40:50 by Tobias S. Josefowitz <tobij@tobij.de>

Gz: Do not accept wide strings as dictionary.

187:    }    if (GET_TYPE(STRING, "dictionary"))    { +  if (tmp->u.string->size_shift) +  Pike_error("dictionary cannot be a wide string in " +  "gz_deflate->create().\n");    THIS->dict = tmp->u.string;    add_ref(THIS->dict);    }
208:    if(THIS->level < Z_NO_COMPRESSION ||    THIS->level > Z_BEST_COMPRESSION)    { -  Pike_error("Compression level out of range for gz_deflate->create()\n"); +  Pike_error("Compression level out of range for " +  "gz_deflate->create()\n");    }    }    }
684:    struct svalue *tmp;       if (GET_TYPE(STRING, "dictionary")) { +  if (tmp->u.string->size_shift) +  Pike_error("dictionary cannot be a wide string in " +  "gz_inflate->create().\n");    THIS->dict = tmp->u.string;    add_ref(THIS->dict);    }