Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03F2017EE4 for ; Thu, 6 Nov 2014 15:01:35 +0000 (UTC) Received: (qmail 88417 invoked by uid 500); 6 Nov 2014 15:01:34 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 88381 invoked by uid 500); 6 Nov 2014 15:01:34 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 88371 invoked by uid 99); 6 Nov 2014 15:01:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 15:01:34 +0000 Date: Thu, 6 Nov 2014 15:01:34 +0000 (UTC) From: "Daniel Pocock (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-8001) SmppUtils.isGsm0338Encodeable() called with arbitrary data MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Daniel Pocock created CAMEL-8001: ------------------------------------ Summary: SmppUtils.isGsm0338Encodeable() called with arbitrary data Key: CAMEL-8001 URL: https://issues.apache.org/jira/browse/CAMEL-8001 Project: Camel Issue Type: Bug Components: camel-smpp Affects Versions: 2.12.2 Environment: n/a Reporter: Daniel Pocock 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)