1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/printing
Günther Deschner 6326b3415f s3-printing: fix format-truncation in print_queue_update()
../source3/printing/printing.c: In function ‘print_queue_update’:
../source3/printing/printing.c:1809:42: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 244 [-Werror=format-truncation=]
  snprintf(key, sizeof(key), "MSG_PENDING/%s", sharename);
                                          ^~   ~~~~~~~~~
../source3/printing/printing.c:1809:2: note: ‘snprintf’ output between 13 and 268 bytes into a destination of size 256
  snprintf(key, sizeof(key), "MSG_PENDING/%s", sharename);

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13437

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2018-05-17 17:30:09 +02:00
..
tests s3:printing: Fix setting the first jobnum 2017-07-25 09:14:19 +02:00
load.c printing: return last change time with pcap_cache_loaded() 2014-08-08 14:10:39 +02:00
load.h
lpq_parse.c
notify.c dlist: remove unneeded type argument from DLIST_ADD_END() 2016-02-06 21:48:17 +01:00
notify.h Convert all uint32/16/8 to _t in a grab-bag of remaining files. 2015-05-14 22:16:56 +02:00
nt_printing_ads.c s3-printing: Improve debug message 2016-11-08 14:11:20 +01:00
nt_printing_migrate_internal.c rpc: Always supply both the remote and local address to the auth subsystem 2017-03-29 02:37:27 +02:00
nt_printing_migrate_internal.h
nt_printing_migrate.c s3-printing: fix migrate printer code (bug 8618) 2016-10-05 19:19:38 +02:00
nt_printing_migrate.h
nt_printing_os2.c werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/printing/ 2016-09-28 00:04:18 +02:00
nt_printing_os2.h
nt_printing_tdb.c lib: Remove tdb_fetch_compat 2015-03-17 11:30:52 +01:00
nt_printing_tdb.h
nt_printing.c printing: Fix CID 1435452 (TAINTED_SCALAR) 2018-05-11 20:33:13 +02:00
pcap.c s3:printing: Avoid compiler warning about unused label 2014-11-25 07:25:44 +01:00
pcap.h printing: return last change time with pcap_cache_loaded() 2014-08-08 14:10:39 +02:00
print_aix.c printing: Convert aix_cache_reload to stdio 2016-12-11 11:17:24 +01:00
print_cups.c Correct "successfuly" typos. 2017-02-22 08:26:22 +01:00
print_generic.c printing: Avoid an "extern current_user" 2017-10-27 20:33:25 +02:00
print_iprint.c s3:printing: fix some const warnings in print_iprint.c 2014-11-25 07:25:44 +01:00
print_standard.c printing: std_pcap_cache_reload xfile->stdio 2016-12-11 11:17:23 +01:00
print_svid.c lib: Remove "includes.h" from util_file.c 2016-02-23 22:03:17 +01:00
printer_list.c printer_list: don't leak lock_path onto talloc tos 2014-11-03 23:46:05 +01:00
printer_list.h
printing_db.c s3:printing: Fix size type in printing_db 2018-03-20 23:16:15 +01:00
printing.c s3-printing: fix format-truncation in print_queue_update() 2018-05-17 17:30:09 +02:00
printspoolss.c rpc: Always supply both the remote and local address to the auth subsystem 2017-03-29 02:37:27 +02:00
queue_process.c lib: #include "util_event.h" only where needed 2018-04-24 22:26:22 +02:00
queue_process.h
spoolssd.c lib: Remove unused serverid.tdb 2017-12-05 04:58:26 +01:00