summaryrefslogtreecommitdiff
path: root/source4/lib/registry/patchfile_dotreg.c
Commit message (Collapse)AuthorAgeFilesLines
* werror: replace WERR_GENERAL_FAILURE with WERR_GEN_FAILURE in ↵Günther Deschner2016-09-281-2/+2
| | | | | | | | | source4/lib/registry/ Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/lib/registry/Günther Deschner2016-09-281-3/+3
| | | | | | | Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:lib:registry: fix 'Conditional jump or move' valgrind error.Noel Power2016-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | smbtorture local.registry.diff.dotreg.test_diff_apply produces the following valgrind trace ==18367== Conditional jump or move depends on uninitialised value(s) ==18367== at 0xA02ED96: reg_dotreg_diff_load (patchfile_dotreg.c:252) ==18367== by 0xA031C6C: reg_diff_load (patchfile.c:375) ==18367== by 0xA0323AB: reg_diff_apply (patchfile.c:542) ==18367== by 0x15F116: test_diff_apply (diff.c:72) ==18367== by 0x955460C: wrap_test_with_simple_test (torture.c:731) ==18367== by 0x955366F: internal_torture_run_test (torture.c:442) ==18367== by 0x9553A4B: torture_run_test_restricted (torture.c:542) ==18367== by 0x260074: run_matching (smbtorture.c:110) ==18367== by 0x25FF36: run_matching (smbtorture.c:95) ==18367== by 0x25FF36: run_matching (smbtorture.c:95) ==18367== by 0x25FF36: run_matching (smbtorture.c:95) ==18367== by 0x260195: torture_run_named_tests (smbtorture.c:143) ==18367== Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Fix the developer O3 buildVolker Lendecke2015-02-251-2/+2
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Alexander Bokovoy <ab@samba.org> Autobuild-Date(master): Wed Feb 25 16:32:29 CET 2015 on sn-devel-104
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-1/+2
| | | | | | | Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-2/+2
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* registry: Make a two more functions static.Jelmer Vernooij2010-10-041-2/+2
|
* s4:patchfile_dotreg.c - use "size_t" when counting characters in DATA_BLOBsMatthias Dieter Wallnöfer2010-10-031-1/+1
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Oct 3 16:03:41 UTC 2010 on sn-devel-104
* Make sure REG_SZ is properly written to a .reg file (not as hex(1)), fix ↵Wilco Baan Hofman2010-10-031-11/+25
| | | | | | trailing comma REG_BINARY. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fix patchfile_dotreg to write proper .reg files: 'hex(1..B):', 'dword:', etcWilco Baan Hofman2010-10-031-3/+73
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Do not include the closing doublequote in .reg files.Wilco Baan Hofman2010-10-031-1/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Make sure we write the value stored in value, not line (doublequoted).Wilco Baan Hofman2010-10-031-4/+4
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Fix .reg file format parsing.Wilco Baan Hofman2010-10-031-39/+124
| | | | | | | | * multiline data * doublequoted value name * handle windows format CRLF Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Finish removal of iconv_convenience in public API's.Jelmer Vernooij2010-05-181-7/+2
|
* s4:registry - add more "W_ERROR_HAVE_NO_MEMORY" invocations (on talloc'ed stuff)Matthias Dieter Wallnöfer2010-03-221-0/+3
|
* s4:registry - "patchfile_dotreg.c" - fix a memory leakMatthias Dieter Wallnöfer2010-03-221-3/+5
| | | | | | | Here we allocate memory on the "NULL" context through "reg_val_data_string" on each call of "set_value". So when we have written out the allocated data on the specified file descriptor we should immediately free this memory! Otherwise we may end up with a big memory consumption on big registry databases.
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Fixed the patchfile tests and tidy up the patchfile backends.Wilco Baan Hofman2008-04-151-4/+4
| | | | (This used to be commit 6e9b1e35a269af2eda79356c1525f5413656d648)
* Attempt to fix the patchfile_preg backend for big endian machines.Wilco Baan Hofman2008-04-141-1/+1
| | | | | | Update some functions to properly state what is not supported (yet). Registry .reg uses UCS-2, not UTF-16. (This used to be commit 664a035dd9fc6e3b50a771baa98f8d79360cc4c1)
* Merge patchfile.h into registry.hJelmer Vernooij2008-04-021-1/+0
| | | | (This used to be commit 7b434df67aefc667993f0ebd955af9c1c258f153)
* Convert some more files to GPLv3.Andrew Kroeger2008-03-281-1/+1
| | | | (This used to be commit ebe5e8399422eb7e2ff4deb546338823e2718907)
* Remove uses of global_loadparm.Jelmer Vernooij2008-02-251-1/+2
| | | | (This used to be commit a16c9a2129ce92e7e1a613b2badd168e42ead436)
* Remove more uses of global_loadparm.Jelmer Vernooij2008-02-211-2/+8
| | | | (This used to be commit 3430cc60972b94d0d238bc39f473feed96949c5d)
* r25544: Cleanup some more indents in lib/registry.Günther Deschner2007-10-101-29/+41
| | | | | Guenther (This used to be commit 0d9826dc54057db2cfebcb806e5442c4dcf60daa)
* r25001: Fix more C++ and other warnings, fix some of the indentation with ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | ts=4 lines that I accidently added earlier. (This used to be commit 0bcb21ed740fcec0f48ad36bbc2deee2948e8fc7)
* r24994: Fix some C++ warnings.Jelmer Vernooij2007-10-101-5/+6
| | | | (This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
* r24704: Fix bug in the registry patch code.. all the more proves this code ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | needs tests. (This used to be commit aa98d219571c4a7af1e5a0f8483cc17a4b6b36e2)
* r24667: Finally merge the registry improvements that Wilco Baan Hofman and I ↵Jelmer Vernooij2007-10-101-0/+247
have been working on for at least half a year now. Contains the following improvements: * proper layering (finally!) for the registry library. Distinction is now made between 'real' backends (local, remote, wine, etc) and the low-level hive backends (regf, creg, ldb, ...) that are only used by the local registry backend * tests for all important hive and registry operations * re-enable RPC-WINREG tests (still needs more work though, as some return values aren't checked yet) * write support for REGF files * dir backend now supports setting/reading values, creating keys * support for storing security descriptors * remove CREG backend as it was incomplete, didn't match the data model and wasn't used at all anyway * support for parsing ADM files as used by the policy editor (see lib/policy) * support for parsing PREG files (format used by .POL files) * new streaming interface for registry diffs (improves speed and memory usage for regdiff/regpatch significantly) ... and fixes a large number of bugs in the registry code (This used to be commit 7a1eec6358bc863dfc671c542b7185d3e39d7b5a)