mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
12 lines
178 B
C#
12 lines
178 B
C#
using System;
|
|
using System.IO;
|
|
|
|
class Bad
|
|
{
|
|
long GetLength(string file)
|
|
{
|
|
var stream = new FileStream(file, FileMode.Open);
|
|
return stream.Length;
|
|
}
|
|
}
|