• Skip to main content
  • assistive.skiplink.to.breadcrumbs
  • assistive.skiplink.to.header.menu
  • assistive.skiplink.to.action.menu
  • assistive.skiplink.to.quick.search
Log in
Confluence
  • Spaces
  • Hit enter to search
  • Help
    • Online Help
    • Keyboard Shortcuts
    • Feed Builder
    • What’s new
    • Available Gadgets
    • About Confluence
  • Log in

Android
Android
  • Pages
  • Boards

Space shortcuts

  • Dashboard
  • Secure Coding Home
  • Android
  • C
  • C++
  • Java
  • Perl

Page tree

Browse pages
    • Attachments (0)
    • Page History
    • Page Information
    • Resolved comments
    • View in Hierarchy
    • View Source
    • Export to PDF
    • Export to Word
  1. Pages
  2. Android Secure Coding Standard
  3. 2 Rules
  • Jira links

Rule 12. Expressions (EXP)

  • Created by Sandy Shrum on May 08, 2015

Contents

Android Only

Content by label

There is no content with the specified labels

C

  • Page:
    EXP30-C. Do not depend on the order of evaluation for side effects
  • Page:
    EXP32-C. Do not access a volatile object through a nonvolatile reference
  • Page:
    EXP33-C. Do not read uninitialized memory
  • Page:
    EXP34-C. Do not dereference null pointers
  • Page:
    EXP37-C. Call functions with the correct number and type of arguments
  • Page:
    EXP39-C. Do not access a variable through a pointer of an incompatible type
  • Page:
    EXP40-C. Do not modify constant objects
  • Page:
    EXP42-C. Do not compare padding data
  • Page:
    EXP43-C. Avoid undefined behavior when using restrict-qualified pointers
  • Page:
    EXP44-C. Do not rely on side effects in operands to sizeof, _Alignof, or _Generic
  • Page:
    EXP45-C. Do not perform assignments in selection statements
  • Page:
    EXP46-C. Do not use a bitwise operator with a Boolean-like operand

C++

Content by label

There is no content with the specified labels

Java

  • Page:
    EXP00-J. Do not ignore values returned by methods
  • Page:
    EXP02-J. Do not use the Object.equals() method to compare two arrays

  • rule-list
  • exp
  • section
Overview
Content Tools
  • Powered by Atlassian Confluence 8.5.26
  • Printed by Atlassian Confluence 8.5.26
  • Report a bug
  • Atlassian News
Atlassian

Carnegie Mellon University
Software Engineering Institute
4500 Fifth Avenue
Pittsburgh, PA 15213-2612
412-268-5800

Contact Us
  • Office Locations|
  • Additional Sites Directory|
  • Legal|
  • Privacy Notice|
  • CMU Ethics Hotline|
  • www.sei.cmu.edu

©2025 Carnegie Mellon University

{"serverDuration": 118, "requestCorrelationId": "afb5f7bcb9330138"}