Changeset a4cf312 in mainline for uspace/lib/crypto/crypto.c


Ignore:
Timestamp:
2019-06-05T13:58:08Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
58168e0
Parents:
a18da67
Message:

Fix build with -fsanitize=undefined

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/crypto/crypto.c

    ra18da67 ra4cf312  
    3232 */
    3333
     34#include <assert.h>
    3435#include <str.h>
    3536#include <macros.h>
    3637#include <errno.h>
    3738#include <byteorder.h>
     39#include <limits.h>
    3840#include "crypto.h"
    3941
     
    197199    hash_func_t hash_sel)
    198200{
     201        assert(input_size < SSIZE_MAX);
     202
    199203        if (!input)
    200204                return EINVAL;
Note: See TracChangeset for help on using the changeset viewer.