Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 815 Bytes

File metadata and controls

20 lines (14 loc) · 815 Bytes

AL1312: Read-modify-write without transaction

Property Value
Severity Warning
Category Reliability
Code fix No
Analyzer Al1312ReadModifyWriteWithoutTransactionAnalyzer
Enabled by default Yes

Description

A method that reads data and then writes based on that data without a transaction is vulnerable to race conditions. Another connection could modify the data between the read and write. Use BeginTransaction/BeginTransactionAsync to ensure isolation.

See also