Return-Path: Delivered-To: apmail-stdcxx-issues-archive@locus.apache.org Received: (qmail 21176 invoked from network); 14 Mar 2008 23:24:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2008 23:24:04 -0000 Received: (qmail 53776 invoked by uid 500); 14 Mar 2008 23:24:01 -0000 Delivered-To: apmail-stdcxx-issues-archive@stdcxx.apache.org Received: (qmail 53759 invoked by uid 500); 14 Mar 2008 23:24:01 -0000 Mailing-List: contact issues-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list issues@stdcxx.apache.org Received: (qmail 53750 invoked by uid 99); 14 Mar 2008 23:24:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 16:24:01 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 23:23:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D848234C098 for ; Fri, 14 Mar 2008 16:22:24 -0700 (PDT) Message-ID: <1860875347.1205536944294.JavaMail.jira@brutus> Date: Fri, 14 Mar 2008 16:22:24 -0700 (PDT) From: "Martin Sebor (JIRA)" To: issues@stdcxx.apache.org Subject: [jira] Resolved: (STDCXX-730) [HP aCC 6.15] potential null dererefence and out of bound access in iso2022.cpp In-Reply-To: <4084765.1202947028843.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor resolved STDCXX-730. --------------------------------- Resolution: Fixed The warning's gone from nightly builds. > [HP aCC 6.15] potential null dererefence and out of bound access in iso2022.cpp > ------------------------------------------------------------------------------- > > Key: STDCXX-730 > URL: https://issues.apache.org/jira/browse/STDCXX-730 > Project: C++ Standard Library > Issue Type: Sub-task > Components: 22. Localization > Affects Versions: 4.2.0 > Environment: $ uname -sr && aCC -V > HP-UX B.11.31 > aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007] > Reporter: Martin Sebor > Assignee: Martin Sebor > Fix For: 4.2.1 > > Original Estimate: 2h > Remaining Estimate: 2h > > We're getting a bunch of warnings from this file,. a couple of them looking serious: > {noformat} > "$(TOPDIR)/src/iso2022.cpp", line 470: warning #4232-D: conversion from "mbstate_t *" to a more strictly aligned type "unsigned short *" may cause misaligned access > _RWSTD_REINTERPRET_CAST (ISO_2022_STATE_INDEX_T*, &state); > ^ > "$(TOPDIR)/include/loc/_localedef.h", line 160: remark #4298-D: 64 bit migration: addition result could be truncated before cast to bigger sized type > return (wtolower_off - wtoupper_off) / sizeof (__rw_upper_elm); > ^ > "$(TOPDIR)/include/loc/_localedef.h", line 164: remark #4298-D: 64 bit migration: addition result could be truncated before cast to bigger sized type > return (wmask_off - wtolower_off) / sizeof (__rw_lower_elm); > ^ > "$(TOPDIR)/include/loc/_localedef.h", line 168: remark #4298-D: 64 bit migration: addition result could be truncated before cast to bigger sized type > return charmap_off - codeset_off; > ^ > "$(TOPDIR)/include/loc/_localedef.h", line 172: remark #4298-D: 64 bit migration: addition result could be truncated before cast to bigger sized type > return wtoupper_off - charmap_off; > ^ > "$(TOPDIR)/include/loc/_localedef.h", line 122: remark #4299-D: 64 bit migration: multiply result could be truncated before cast to bigger sized type > return *(_RWSTD_ARRAY_ELM (wchar_t, wchar_off, off * 2)); > ^ > "$(TOPDIR)/include/loc/_localedef.h", line 128: remark #4298-D: 64 bit migration: addition result could be truncated before cast to bigger sized type > return *(_RWSTD_ARRAY_ELM (wchar_t, wchar_off, off * 2 + 1)); > ^ > "$(TOPDIR)/src/iso2022.cpp", line 764, procedure __rw::__rw_ksc5601_to_iso2022: warning #20200-D: Potential null pointer dereference through esc is detected (null definition:$(TOPDIR)/src/iso2022.cpp, line 677) > "$(TOPDIR)/src/iso2022.cpp", line 1541, procedure __rw::__rw_ucs4_to_interm: warning #20206-D: Out of bound access (In expression "&db_array[(long long)i]", array "db_array" [$(TOPDIR)/src/iso2022.cpp:1525] (type: struct _noname [6]) has element range [0 .. 5], reading element range [0 .. 11].) > "$(TOPDIR)/src/iso2022.cpp", line 1586, procedure __rw::__rw_ucs4_to_interm: warning #20206-D: Out of bound access (In expression "&db_array[(long long)i]", array "db_array" [$(TOPDIR)/src/iso2022.cpp:1525] (type: struct _noname [6]) has element range [0 .. 5], reading element range [0 .. 11].) > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.