1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/source3/printing
Noel Power 02017d35f4 s3/printing: cppcheck avoid 'nullPointerArithmetic:' error
source3/printing/notify.c:94: error: nullPointerArithmetic: Pointer addition with NULL pointer. <--[cppcheck]
/home/samba/samba-pidl/source3/printing/notify.c:96: error: nullPointerArithmetic: Pointer addition with NULL pointer. <--[cppcheck]
/home/samba/samba-pidl/source3/printing/notify.c:103: error: nullPointerArithmetic: Pointer addition with NULL pointer. <--[cppcheck]

flatten_message function depends on behaviour of tdb_pack which will
return the bytes that would be written (without actually writing to the
buffer) if the bufsize passed is <=0. What we need to avoid here is the
default modification of buf (when it is initially NULL)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
2019-05-29 10:10:23 +00:00
..
tests s3:printing: Fix setting the first jobnum 2017-07-25 09:14:19 +02:00
load.c printing: drop pcap_cache_loaded() guard around load_printers() 2019-02-01 16:08:25 +01:00
load.h printing: remove unused arguments from load_printers() 2018-06-14 20:52:20 +02:00
lpq_parse.c Correctly check for errors in strlower_m() returns. 2012-08-09 12:08:18 -07:00
notify.c s3/printing: cppcheck avoid 'nullPointerArithmetic:' error 2019-05-29 10:10:23 +00: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 lib: Pass mem_ctx to state_path() 2018-08-17 11:30:11 +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 s3-net: Add encoding=<CP> to 'net printing migrate'. 2013-03-15 12:11:03 +01:00
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: Pass mem_ctx to state_path() 2018-08-17 11:30:11 +02:00
nt_printing_tdb.h
nt_printing.c s3: Rename server_messaging_context() to global_messaging_context() 2018-09-07 17:26:17 +02:00
pcap.c printing: check lp_load_printers() prior to pcap cache update 2019-02-01 19:25:03 +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 s3: smbd: Convert print_svid code to use file_lines_ploadv(). 2019-05-24 19:00:05 +00:00
printer_list.c lib: Pass mem_ctx to lock_path() 2018-08-17 11:30:10 +02:00
printer_list.h printing: traverse_read the printer list for share updates 2014-08-08 14:10:38 +02:00
printing_db.c lib: Pass mem_ctx to cache_path() 2018-08-17 14:28:51 +02:00
printing.c tdb_unpack: Correct "len" arg for "B" format 2018-10-08 22:17:09 +02:00
printspoolss.c s3: smbd: printing: Re-implement delete-on-close semantics for print files missing since 3.5.x. 2018-06-01 20:32:03 +02:00
queue_process.c printing: check lp_load_printers() prior to pcap cache update 2019-02-01 19:25:03 +01:00
queue_process.h
spoolssd.c printing: drop pcap_cache_loaded() guard around load_printers() 2019-02-01 16:08:25 +01:00