mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-29 14:25:23 -04:00
command line: avoid arg_opts buffer overflow if -d/i used without space before arg
This commit is contained in:
parent
e5c6f99b04
commit
980e039743
3 changed files with 4 additions and 4 deletions
|
@ -240,7 +240,7 @@ INTERNAL int is_extendable(const int symbology) {
|
|||
}
|
||||
|
||||
/* Indicates which symbols can have composite 2D component data */
|
||||
INTERNAL int is_composite(int symbology) {
|
||||
INTERNAL int is_composite(const int symbology) {
|
||||
return symbology >= BARCODE_EANX_CC && symbology <= BARCODE_DBAR_EXPSTK_CC;
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ extern "C" {
|
|||
INTERNAL int is_stackable(const int symbology);
|
||||
INTERNAL int is_extendable(const int symbology);
|
||||
INTERNAL int is_composite(const int symbology);
|
||||
INTERNAL int istwodigits(const unsigned char source[], int length, const int position);
|
||||
INTERNAL int istwodigits(const unsigned char source[], const int length, const int position);
|
||||
INTERNAL unsigned int decode_utf8(unsigned int *state, unsigned int *codep, const unsigned char byte);
|
||||
INTERNAL int utf8_to_unicode(struct zint_symbol *symbol, const unsigned char source[], unsigned int vals[], size_t *length, int disallow_4byte);
|
||||
INTERNAL void set_minimum_height(struct zint_symbol *symbol, const int min_height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue