Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-27870

Invalid pointer subtraction causes build failure on mac

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Not specified
    • Resolution: Fixed
    • None
    • 8.8.0, 8.6.40
    • JLib
    • None

    Description

      There is some code to check if data is aligned:

      if (!((data - (const md5_byte_t *)0) & 3)) {
      

      which is dubious.  Much better would be to cast to an integer type and then check.

       

       

      Attachments

        Activity

          People

            ghalliday Gavin Halliday
            ghalliday Gavin Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: