Thread: Possible Null dereference in code.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2017
    Posts
    1,644
    Why do you think it's dereferencing (not deference!) a null pointer?
    The else on line 34 pairs with the if on line 17, not the if on line 13.
    A little inaccuracy saves tons of explanation. - H.H. Munro

  2. #2
    Registered User
    Join Date
    Oct 2019
    Posts
    82
    Quote Originally Posted by john.c View Post
    Why do you think it's dereferencing (not deference!) a null pointer?
    The else on line 34 pairs with the if on line 17, not the if on line 13.
    Sorry about the typo.

    You are right. Thanks

    Quote Originally Posted by G4143 View Post
    Could you use valgrind to verify this?

    Valgrind Home
    I don't think it possible to debug the kernel with valgrind but there's kmemleak(which reports memory leaks). And, even if it was, it probably would have been painfully difficult to setup(as weill all other kernel debugging setups).

    Thanks for you time, all the same!
    Last edited by ghoul; 05-07-2022 at 06:53 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Null bytes in code
    By Aslaville in forum Tech Board
    Replies: 2
    Last Post: 05-11-2015, 12:12 PM
  2. XNA code error Value cannot be null.
    By Demipimp in forum C# Programming
    Replies: 6
    Last Post: 05-03-2012, 05:32 PM
  3. null pointer dereference
    By qwertylurker in forum C Programming
    Replies: 3
    Last Post: 03-14-2011, 12:06 AM
  4. Dereference a member of NULL ?
    By kbrandt in forum C Programming
    Replies: 4
    Last Post: 06-24-2009, 01:39 PM
  5. ASCII code for a NULL character
    By GaPe in forum C Programming
    Replies: 1
    Last Post: 12-09-2001, 05:40 AM

Tags for this Thread