~ubuntu-branches/ubuntu/trusty/libsmi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/data.c

  • Committer: Package Import Robot
  • Author(s): Vincent Bernat
  • Date: 2012-06-08 23:32:46 UTC
  • Revision ID: package-import@ubuntu.com-20120608233246-2hcpyeeg31cbp38v
Tags: 0.4.8+dfsg2-6
* Fix a segfault when reading partially invalid MIB. Closes: #600076.
* Add a symbols file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4737
4737
        smiDepth++;
4738
4738
        parser.line                     = 1;
4739
4739
        smiparse((void *)&parser);
 
4740
#if 0
 
4741
        /*
 
4742
         * These nodes seem to be referenced in certain situations and
 
4743
         * thus freeing them causes problems. So we better do not free
 
4744
         * until we have sorted out how to free safely.
 
4745
         *
 
4746
         * http://www.ibr.cs.tu-bs.de/pipermail/libsmi/2010-August/001214.html
 
4747
         * http://www.ibr.cs.tu-bs.de/pipermail/libsmi/2011-May/001249.html
 
4748
         *
 
4749
         * (see also below for the sming version)
 
4750
         */
4740
4751
        freeNodeTree(parser.pendingNodePtr);
4741
4752
        smiFree(parser.pendingNodePtr);
 
4753
#endif
4742
4754
        smiLeaveLexRecursion();
4743
4755
        smiDepth--;
4744
4756
        fclose(parser.file);
4780
4792
        smiDepth++;
4781
4793
        parser.line                     = 1;
4782
4794
        smingparse((void *)&parser);
 
4795
#if 0
 
4796
        /*
 
4797
         * These nodes seem to be referenced in certain situations and
 
4798
         * thus freeing them causes problems. So we better do not free
 
4799
         * until we have sorted out how to free safely.
 
4800
         *
 
4801
         * http://www.ibr.cs.tu-bs.de/pipermail/libsmi/2010-August/001214.html
 
4802
         * http://www.ibr.cs.tu-bs.de/pipermail/libsmi/2011-May/001249.html
 
4803
         *
 
4804
         * (see also above for the smi version)
 
4805
         */
4783
4806
        freeNodeTree(parser.pendingNodePtr);
4784
4807
        smiFree(parser.pendingNodePtr);
 
4808
#endif
4785
4809
        smingLeaveLexRecursion();
4786
4810
        smiDepth--;
4787
4811
        fclose(parser.file);