History

kasan: update function name in comments

The function kasan_global_oob was renamed to kasan_global_oob_right, but the comments referring to it were not updated. Do so.

Peter Collingbourne committed 4 years ago

Commit 2dfd1bd1 parent 09eb9111 file · +3 −3Browse files

Unified · Split

lib/test_kasan.c+3−3
@@ -786,7 +786,7 @@ static void ksize_uaf(struct kunit *test) · 785 unmodified lines
786static void kasan_stack_oob(struct kunit *test)786static void kasan_stack_oob(struct kunit *test)
787{787{
788 char stack_array[10];788 char stack_array[10];
789 /* See comment in kasan_global_oob. */789 /* See comment in kasan_global_oob_right. */
790 char *volatile array = stack_array;790 char *volatile array = stack_array;
791 char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF];791 char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF];
792 792
@@ -799,7 +799,7 @@ static void kasan_alloca_oob_left(struct kunit *test) · 6 unmodified lines
799{799{
800 volatile int i = 10;800 volatile int i = 10;
801 char alloca_array[i];801 char alloca_array[i];
802 /* See comment in kasan_global_oob. */802 /* See comment in kasan_global_oob_right. */
803 char *volatile array = alloca_array;803 char *volatile array = alloca_array;
804 char *p = array - 1;804 char *p = array - 1;
805 805
@@ -814,7 +814,7 @@ static void kasan_alloca_oob_right(struct kunit *test) · 8 unmodified lines
814{814{
815 volatile int i = 10;815 volatile int i = 10;
816 char alloca_array[i];816 char alloca_array[i];
817 /* See comment in kasan_global_oob. */817 /* See comment in kasan_global_oob_right. */
818 char *volatile array = alloca_array;818 char *volatile array = alloca_array;
819 char *p = array + i;819 char *p = array + i;
820 820

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t