1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source3/printing
Douglas Bagnall fc267567a0 printing: avoid crash in LPRng_time
If the string is too shhort we don't want to atoi() whatever is beyond
the end of it.

Found using Honggfuzz and the fuzz_parse_lpq_entry fuzzer.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Jul  5 05:07:13 UTC 2021 on sn-devel-184
2021-07-05 05:07:13 +00:00
..
tests s3:printing: Fix setting the first jobnum 2017-07-25 09:14:19 +02:00
load.c s3:param: Fix segfault trying to add pcap printer without a [printers] share 2021-03-19 18:56:33 +00:00
load.h printing: remove unused arguments from load_printers() 2018-06-14 20:52:20 +02:00
lpq_parse.c printing: avoid crash in LPRng_time 2021-07-05 05:07:13 +00:00
notify.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
notify.h
nt_printing_ads.c nt_printing_ads: support more attributes for AD published printers 2020-10-08 17:52:46 +00: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
nt_printing_os2.c smbdotconf: mark "os2 driver map" with substitution="1" 2019-11-27 10:25:35 +00:00
nt_printing_os2.h
nt_printing_tdb.c s3:printing: Add missing break in switch statement 2021-02-01 21:50:32 +00:00
nt_printing_tdb.h
nt_printing.c printing: Avoid a few references to background_lpq_updater_pid 2021-05-11 23:45:21 +00:00
pcap.c printing: Fix typos 2021-03-24 20:31:30 +00:00
pcap.h printing: Remove simple wrapper function pcap_printer_read_fn() 2021-03-16 17:09:31 +00:00
print_aix.c printing: Convert aix_cache_reload to stdio 2016-12-11 11:17:24 +01:00
print_cups.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
print_generic.c printing: Simplify calling print commands 2021-05-11 22:56:37 +00:00
print_iprint.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00: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 printing: Introduce printer_list_printername_exists() 2021-03-16 17:09:31 +00:00
printer_list.h printing: Introduce printer_list_printername_exists() 2021-03-16 17:09:31 +00:00
printing_db.c s3: safe_string: do not include string_wrappers.h 2020-08-28 00:56:34 +00:00
printing.c printing: Factor out remove_from_jobs_list() 2021-06-04 16:47:34 +00:00
printspoolss.c printing: Move rap2jobid functions to their own file 2021-03-16 17:09:31 +00:00
queue_process.c printing: Avoid a few references to background_lpq_updater_pid 2021-05-11 23:45:21 +00:00
queue_process.h printing: Avoid a few references to background_lpq_updater_pid 2021-05-11 23:45:21 +00:00
rap_jobid.c printing: Move rap2jobid functions to their own file 2021-03-16 17:09:31 +00:00
rap_jobid.h printing: Move rap2jobid functions to their own file 2021-03-16 17:09:31 +00:00
samba-bgqd.c s3:printing: Migrate samba-bgqd to new cmdline option parser 2021-05-28 02:55:31 +00:00
spoolssd.c printing: Avoid a few references to background_lpq_updater_pid 2021-05-11 23:45:21 +00:00
spoolssd.h s3:rpc_server: Reinitialize dcesrv_context in external spoolssd daemon 2020-03-20 15:36:32 +00:00