load data will panic if the content is break at escape character #31589
Labels
affects-4.0
This bug affects 4.0.x versions.
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects 5.4.x versions.
fixes-5.1.4
severity/major
sig/transaction
SIG:Transaction
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
tidb/executor/load_data.go
Lines 550 to 568 in 79171be
if data is broken at escape character and then followed by a
\n
, then it will get the wrong index of the new line, it will cause panicThe text was updated successfully, but these errors were encountered: