Click here to Skip to main content
15,917,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: Get text in a textbox Pin
Richard Deeming15-Jun-15 1:20
mveRichard Deeming15-Jun-15 1:20 
GeneralRe: Get text in a textbox Pin
Abhipal Singh15-Jun-15 5:35
professionalAbhipal Singh15-Jun-15 5:35 
SuggestionRe: Get text in a textbox Pin
Richard Deeming15-Jun-15 1:22
mveRichard Deeming15-Jun-15 1:22 
Generallogin page in asp.net Pin
Member 1155558912-Jun-15 3:16
Member 1155558912-Jun-15 3:16 
GeneralRe: login page in asp.net Pin
Richard MacCutchan12-Jun-15 5:18
mveRichard MacCutchan12-Jun-15 5:18 
AnswerRe: login page in asp.net Pin
ZurdoDev12-Jun-15 5:46
professionalZurdoDev12-Jun-15 5:46 
GeneralRe: login page in asp.net Pin
Vimalsoft(Pty) Ltd18-Jun-15 21:47
professionalVimalsoft(Pty) Ltd18-Jun-15 21:47 
GeneralRe: login page in asp.net Pin
Richard Deeming19-Jun-15 2:00
mveRichard Deeming19-Jun-15 2:00 
GeneralRe: login page in asp.net Pin
Mr Munesh Sharma19-Jun-15 1:12
professionalMr Munesh Sharma19-Jun-15 1:12 
GeneralRe: login page in asp.net Pin
Richard Deeming19-Jun-15 2:02
mveRichard Deeming19-Jun-15 2:02 
GeneralRe: login page in asp.net Pin
Richard Deeming19-Jun-15 2:06
mveRichard Deeming19-Jun-15 2:06 
Questionfind whole name list from word using textbox Pin
Member 1158609811-Jun-15 22:36
Member 1158609811-Jun-15 22:36 
QuestionRe: find whole name list from word using textbox Pin
ZurdoDev12-Jun-15 8:13
professionalZurdoDev12-Jun-15 8:13 
QuestionMessage Closed Pin
11-Jun-15 7:31
Stephen Holdorf11-Jun-15 7:31 
RantREPOST Pin
Richard Deeming11-Jun-15 7:52
mveRichard Deeming11-Jun-15 7:52 
QuestionUnchecked returned value causing unexpected states and conditions. Pin
Stephen Holdorf10-Jun-15 7:35
Stephen Holdorf10-Jun-15 7:35 
I have been searching the internet for over an hour and can only find client side discussions the my latest scan finding. What I am receiving is method that uses the Read() method and because the Read() ignores the value returned could cause the program to overlook unexpected states and conditions finding. If anyone can explain, in small detail, and possibility recommend a fix the would be great. The function is below:

Offending line of code in the method:


csEncrypt.Read(fromEncrypt, 0, fromEncrypt.Length);

Calling method:

        public String DecryptMessage(byte[] encrypted)
        {
            ASCIIEncoding textConverter = new ASCIIEncoding();
            decryptor = aes.CreateDecryptor(key, IV);
            MemoryStream msDecrypt = new MemoryStream(encrypted);
            csEncrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read);
            byte[] fromEncrypt = new byte[encrypted.Length];
            csEncrypt.Read(fromEncrypt, 0, fromEncrypt.Length);
            return textConverter.GetString(fromEncrypt);
        }
<pre>

AnswerRe: Unchecked returned value causing unexpected states and conditions. Pin
Richard Deeming10-Jun-15 7:56
mveRichard Deeming10-Jun-15 7:56 
AnswerRe: Unchecked returned value causing unexpected states and conditions. Pin
Sascha Lefèvre10-Jun-15 15:01
professionalSascha Lefèvre10-Jun-15 15:01 
GeneralMessage Closed Pin
11-Jun-15 8:34
Stephen Holdorf11-Jun-15 8:34 
GeneralRe: Unchecked returned value causing unexpected states and conditions. Pin
Richard Deeming11-Jun-15 8:43
mveRichard Deeming11-Jun-15 8:43 
QuestionWeb.config file debug="true" setting Pin
Stephen Holdorf10-Jun-15 3:48
Stephen Holdorf10-Jun-15 3:48 
AnswerRe: Web.config file debug="true" setting Pin
Richard Deeming10-Jun-15 4:02
mveRichard Deeming10-Jun-15 4:02 
QuestionAllowing the attacker to access unathorized records finding. Pin
Stephen Holdorf8-Jun-15 7:00
Stephen Holdorf8-Jun-15 7:00 
AnswerMessage Closed Pin
8-Jun-15 8:52
Stephen Holdorf8-Jun-15 8:52 
GeneralRe: Allowing the attacker to access unathorized records finding. Pin
Stephen Holdorf8-Jun-15 10:02
Stephen Holdorf8-Jun-15 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.