Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1238

size_t less than zero comparison

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • None
    • guththila
    • None
    • Linux Suse9, x86

    Description

      In function guththila_next_char (guththila/src/guththila_xml_parser.c), the result value from guththila_reader_read is stored in a size_t temp var and then is compared to greater than zero (line 1598), but size_t is unsigned in ansi C. Therefore, -1 condition is never true and a core dump occurs. If the result value of guththila_reader_read is stored in a int var, the bug is fixed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lkausilas Leonardo Kausilas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified