mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
tests & fix for 0 length modifier value
This commit is contained in:
parent
e7a4df6180
commit
c4340bae9f
6 changed files with 25 additions and 2 deletions
|
@ -109,6 +109,7 @@ typedef struct
|
|||
psycBool contentLengthFound; ///< is there a length given for this packet?
|
||||
size_t valueParsed; ///< number of bytes parsed from the value so far
|
||||
size_t valueLength; ///< expected length of the value
|
||||
psycBool valueLengthFound; ///< is there a length given for this modifier?
|
||||
} psycParseState;
|
||||
|
||||
/**
|
||||
|
@ -231,6 +232,12 @@ size_t psyc_getParseValueLength (psycParseState *state)
|
|||
return state->valueLength;
|
||||
}
|
||||
|
||||
static inline
|
||||
psycBool psyc_isParseValueLengthFound (psycParseState *state)
|
||||
{
|
||||
return state->valueLengthFound;
|
||||
}
|
||||
|
||||
static inline
|
||||
size_t psyc_getParseCursor (psycParseState *state)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue