Return-Path: MIME-Version: 1.0 In-Reply-To: References: <1319712176-709-1-git-send-email-dmitriy.paliy@nokia.com> Date: Thu, 27 Oct 2011 16:33:37 +0300 Message-ID: Subject: Re: [PATCH BlueZ] Fix incorrect use of atoi in maemo6 From: Dmitriy Paliy To: Anderson Lizardo Cc: Dmitriy Paliy , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi, > There are lots of atoi() calls in other parts of BlueZ. Are they safe? Yes > What is exactly unsafe in using atoi()? The string should be null-terminated, which is not in this case, since it is just a char. It was my mistake. Br, Dmitriy