From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Strings encoding Date: Tue, 22 Mar 2016 09:46:47 -0400 Message-ID: <1992820.4UernVdTc4@x2> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com Hello, On Tuesday, March 22, 2016 09:44:19 AM Lev Stipakov wrote: > The string values can be either enclosed in quotation marks or > hex-encoded. Is it safe to assume that sequence of bytes after hex > decoding is always utf-8 encoded string? There are no guarantees what they are. This is used whenever the user could have controlled the input in a way to trick the audit parser. And in one case the hex encoding is an actual socket address structure. -Steve