Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8001

SmppUtils.isGsm0338Encodeable() called with arbitrary data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.2
    • 2.13.4, 2.14.1, 2.15.0
    • camel-smpp
    • n/a

    • Patch Available
    • Unknown

    Description

      The method SmppUtils.isGsm0338Encodeable(byte[]) expects the input data to be Latin1 encoded (or a subset of Latin1, such as ASCII)

      The method SmppSmCommand.determineAlphabet(Message) prepares an argument by calling String.getBytes(charset) without checking the charset is Latin1 or compatible.

      Attachments

        1. determineAlphabet_fix.patch
          2 kB
          Daniel Pocock

        Activity

          People

            njiang Willem Jiang
            daniel.pocock Daniel Pocock
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: