From 7ddf721500dc9cabc10c4075e697934c732b31b0 Mon Sep 17 00:00:00 2001 From: Taewon Park Date: Tue, 2 Apr 2019 23:11:29 +0900 Subject: [PATCH] Fix wrong tags in Pro.bounds and Pro.lifetime (#1399) Replaced "href" attribute to "name" of tags in Pro.bounds and Pro.lifetime sections, to make the anchors to them work correctly --- CppCoreGuidelines.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2401153..e76e0e9 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -20376,13 +20376,13 @@ which cover other unsafe operations that allow bounds violations. Bounds safety profile summary: -* Bounds.1: Don't use pointer arithmetic. Use `span` instead: +* Bounds.1: Don't use pointer arithmetic. Use `span` instead: [Pass pointers to single objects (only)](#Ri-array) and [Keep pointer arithmetic simple](#Res-ptr). -* Bounds.2: Only index into arrays using constant expressions: +* Bounds.2: Only index into arrays using constant expressions: [Pass pointers to single objects (only)](#Ri-array) and [Keep pointer arithmetic simple](#Res-ptr). -* Bounds.3: No array-to-pointer decay: +* Bounds.3: No array-to-pointer decay: [Pass pointers to single objects (only)](#Ri-array) and [Keep pointer arithmetic simple](#Res-ptr). -* Bounds.4: Don't use standard-library functions and types that are not bounds-checked: +* Bounds.4: Don't use standard-library functions and types that are not bounds-checked: [Use the standard library in a type-safe manner](#Rsl-bounds). ##### Impact @@ -20404,7 +20404,7 @@ For example, a pointer may be uninitialized, the `nullptr`, point beyond the ran Lifetime safety profile summary: -* Lifetime.1: Don't dereference a possibly invalid pointer: +* Lifetime.1: Don't dereference a possibly invalid pointer: [detect or avoid](#Res-deref). ##### Impact