Anonymous

My feedback

  1. 4 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    planned  ·  1 comment  ·  General  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Anonymous commented  · 

    #include<stdio.h>
    4
    5 int main()
    6 {
    7
    8 unsigned char buffer[5];
    9 unsigned char* buffer_ptr = &buffer[4];
    10
    11 ++buffer_ptr;
    _
    12 *buffer_ptr = 0x12;
    diy.c 12 Warning 415: Likely access of out-of-bounds pointer (1 beyond end of data) by operator 'unary *' [Reference: file diy.c: lines 9, 11]
    13 return 0;
    _
    14 }

  2. 4 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    3 comments  ·  General  ·  Flag idea as inappropriate…  ·  Admin →
    An error occurred while saving the comment
    Anonymous commented  · 

    The data type has been wrongly typed. The data type should be "unsigned" instead of "unisgned" as mentioned in code.

Feedback and Knowledge Base