Skip to content
  • Tor Didriksen's avatar
    dcd4c994
    Bug#18899869 SHA2(X, NULL) YIELDS SHA2(X, 0) INSTEAD OF NULL · dcd4c994
    Tor Didriksen authored
    Bug#72856    SHA2(x, NULL) yields SHA2(x, 0) instead of NULL
    
    The documentation for SHA2(str, hash_length) says:
    If either argument is NULL or the hash length is not one of the permitted values, 
    the return value is NULL.
    
    This was not the case for hash_length == NULL or for 
    hash_length == <some illegal value, which becomes legal when cast to uint>
    dcd4c994
    Bug#18899869 SHA2(X, NULL) YIELDS SHA2(X, 0) INSTEAD OF NULL
    Tor Didriksen authored
    Bug#72856    SHA2(x, NULL) yields SHA2(x, 0) instead of NULL
    
    The documentation for SHA2(str, hash_length) says:
    If either argument is NULL or the hash length is not one of the permitted values, 
    the return value is NULL.
    
    This was not the case for hash_length == NULL or for 
    hash_length == <some illegal value, which becomes legal when cast to uint>
Loading