~ubuntu-branches/ubuntu/utopic/libxml2/utopic

« back to all changes in this revision

Viewing changes to valid.c

  • Committer: Package Import Robot
  • Author(s): Aron Xu, Christian Svensson, Daniel Schepler, Helmut Grohne, Adam Conrad, Matthias Klose, Aron Xu
  • Date: 2014-07-09 05:40:15 UTC
  • mfrom: (43.2.6 sid)
  • Revision ID: package-import@ubuntu.com-20140709054015-1q7dyagza4p2gkm0
Tags: 2.9.1+dfsg1-4
[ Christian Svensson ]
* Do not build-depend on readline (Closes: #742350)

[ Daniel Schepler ]
* Patch to bootstrap without python (Closes: #738080)

[ Helmut Grohne ]
* Drop unneeded B-D on perl and binutils (Closes: #753005)

[ Adam Conrad ]
* Actually run dh_autoreconf, which the old/new mixed rules file misses.

[ Matthias Klose ]
* Add patch to fix python multiarch issue
* Allow the package to cross-build by tweaking B-Ds on python
* Set PYTHON_LIBS for cross builds

[ Aron Xu ]
* Use correct $CC
* Configure udeb without python
* New round of cherry-picking upstream fixes
  - Includes fixes for CVE-2014-0191 (Closes: #747309).
* Call prename with -vf
* Require python-all-dev (>= 2.7.5-5~)
* Bump std-ver: 3.9.4 -> 3.9.5, no change

Show diffs side-by-side

added added

removed removed

Lines of Context:
5236
5236
    xmlElementContentPtr cont;
5237
5237
    const xmlChar *name;
5238
5238
 
5239
 
    if ((elemDecl == NULL) || (parent == NULL))
 
5239
    if ((elemDecl == NULL) || (parent == NULL) || (ctxt == NULL))
5240
5240
        return(-1);
5241
5241
    cont = elemDecl->content;
5242
5242
    name = elemDecl->name;
6948
6948
                         int max) {
6949
6949
    xmlValidCtxt vctxt;
6950
6950
    int nb_valid_elements = 0;
6951
 
    const xmlChar *elements[256];
 
6951
    const xmlChar *elements[256]={0};
6952
6952
    int nb_elements = 0, i;
6953
6953
    const xmlChar *name;
6954
6954