Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: rickg22 on July 11, 2005, 06:08:33 pm

Title: Registry checks?
Post by: rickg22 on July 11, 2005, 06:08:33 pm
I'm posting this because of the "sidebar gone" bug and also the TODO which hasn't been fixed yet - and I don't know how to fix it either :oops:

Anyway, It seems that we don't have restrain checks for registry-stored variables. For example, the "sidebar gone" screwed up when (accidentally?) the value for a certain config dropped below zero. Shouldn't we do a check for min and max values of certain variables before loading them?

This reminds me of my PHP programming times: *NEVER* trust user input. And well, in this case it should be: "Don't trust the registry, it breaks too often :lol: ".

So, what do you think?
Title: Registry checks?
Post by: David Perfors on July 11, 2005, 08:34:31 pm
min values should always be checked... indeed never trust ANY input :P