Skip to content

decodeIndexKvForClusteredIndexVersion1 function cause strings: negative Repeat count #47115

@dua01

Description

@dua01

Bug Report

1. Minimal reproduce step (Required)

create table t (a int, b int, k varchar(64), primary key (a, b), key k (k));
insert value which k is end of over 127 spaces.
OR
table/tables/index_test.go:66 Add 128 spaces behind abc and run test

2. What did you expect to see? (Required)

Test Pass

3. What did you see instead (Required)

panic: strings: negative Repeat count

4. What is your TiDB version? (Required)

Tidb 5.0+

Metadata

Metadata

Assignees

Labels

affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.severity/majorsig/transactionSIG:Transactiontype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions