Crash On Missing Password Data #9

Open
opened 2021-06-29 14:22:20 -05:00 by glm94 · 0 comments
Owner

In the function "GetPasswordHashAndSalt" there's a crash bug if there's no password data associated with a user. The reader attempts to read before checking if there's even rows to read.

var reader = command.ExecuteReader();

//This read() needs to happen after the HasRows check..
reader.Read();

if (!reader.HasRows) return (string.Empty, string.Empty);
In the function "GetPasswordHashAndSalt" there's a crash bug if there's no password data associated with a user. The reader attempts to read before checking if there's even rows to read. ```C# var reader = command.ExecuteReader(); //This read() needs to happen after the HasRows check.. reader.Read(); if (!reader.HasRows) return (string.Empty, string.Empty); ```
glm94 added the bug label 2021-06-29 14:22:20 -05:00
Sign in to join this conversation.