search for: memdup

Displaying 10 results from an estimated 10 matches for "memdup".

Did you mean: memdep
2020 Aug 26
2
Re: [nbdkit PATCH 3/5] api: Add nbdkit_string_intern helper
...n); >>> +      const char *safekey = nbdkit_string_intern (key); >>> +      if (safekey == NULL) >>>           exit (EXIT_FAILURE); >> >> It seems it might also be nice to have a "strndup" version of the >> intern function. > > Or even a memdup.  Yeah, those are possibilities as well.  Doing all > three (strdup, strndup, memdup) up front isn't hard.  If API > proliferation is a problem, you can combine strdup and strndup by > accepting -1 as a length to mean stop at NUL termination; but I'm less > worried about API...
2020 Aug 25
3
Re: [nbdkit PATCH 3/5] api: Add nbdkit_string_intern helper
On Tue, Aug 25, 2020 at 10:46:57AM -0500, Eric Blake wrote: > + const char *nbdkit_string_intern (const char *str); > + > +Returns a copy of str, so that the caller may reclaim str and use the > +copy in its place. If the copy is created outside the scope of a > +connection (such as during C<.load>), the lifetime of the copy will > +last at least through C<.unload>;
2020 Aug 26
0
Re: [nbdkit PATCH 3/5] api: Add nbdkit_string_intern helper
...char *safekey = nbdkit_string_intern (key); > >>>+      if (safekey == NULL) > >>>          exit (EXIT_FAILURE); > >> > >>It seems it might also be nice to have a "strndup" version of the > >>intern function. > > > >Or even a memdup.  Yeah, those are possibilities as well.  Doing > >all three (strdup, strndup, memdup) up front isn't hard.  If API > >proliferation is a problem, you can combine strdup and strndup by > >accepting -1 as a length to mean stop at NUL termination; but I'm > >less worri...
2020 Aug 25
0
Re: [nbdkit PATCH 3/5] api: Add nbdkit_string_intern helper
...ar *key = strndup (argv[optind], n); >> + const char *safekey = nbdkit_string_intern (key); >> + if (safekey == NULL) >> exit (EXIT_FAILURE); > > It seems it might also be nice to have a "strndup" version of the > intern function. Or even a memdup. Yeah, those are possibilities as well. Doing all three (strdup, strndup, memdup) up front isn't hard. If API proliferation is a problem, you can combine strdup and strndup by accepting -1 as a length to mean stop at NUL termination; but I'm less worried about API proliferation and m...
2014 May 27
0
[Announce] Samba 4.0.18 Available for Download
...e. * BUG 10564: Fix lock order violation and file lost. o Bj?rn Baumbach <bb at sernet.de> * BUG 10239: s3-nmbd: Reset debug settings after reading config file. * BUG 10544: s3-lib/util: set_namearray reads across end of namelist string. * BUG 10556: lib-util: Rename memdup to smb_memdup and fix all callers. o Kai Blin <kai at samba.org> * BUG 10609: CVE-2014-0239: dns: Don't reply to replies. o David Disseldorp <ddiss at samba.org> * BUG 10590: byteorder: Do not assume PowerPC is big-endian. o Stefan Metzmacher <metze at samba.o...
2014 May 27
0
[Announce] Samba 4.0.18 Available for Download
...e. * BUG 10564: Fix lock order violation and file lost. o Bj?rn Baumbach <bb at sernet.de> * BUG 10239: s3-nmbd: Reset debug settings after reading config file. * BUG 10544: s3-lib/util: set_namearray reads across end of namelist string. * BUG 10556: lib-util: Rename memdup to smb_memdup and fix all callers. o Kai Blin <kai at samba.org> * BUG 10609: CVE-2014-0239: dns: Don't reply to replies. o David Disseldorp <ddiss at samba.org> * BUG 10590: byteorder: Do not assume PowerPC is big-endian. o Stefan Metzmacher <metze at samba.o...
2014 Jun 03
0
[Announce] Samba 4.1.8 Available for Download
...: Do checks for invalid renames in samldb, before repl_meta_data. o Bj?rn Baumbach <bb at sernet.de> * BUG 10239: s3: nmbd: Reset debug settings after reading config file. * BUG 10544: s3: lib/util: set_namearray reads across end of namelist * BUG 10556: lib-util: Rename memdup to smb_memdup and fix all callers. o Kai Blin <kai at samba.org> * BUG 10609: CVE-2014-0239: dns: Don't reply to replies. o Alexander Bokovoy <ab at samba.org> * BUG 10517: Use exit_daemon() to communicate status of startup to systemd. o David Disseldorp &l...
2014 Jun 03
0
[Announce] Samba 4.1.8 Available for Download
...: Do checks for invalid renames in samldb, before repl_meta_data. o Bj?rn Baumbach <bb at sernet.de> * BUG 10239: s3: nmbd: Reset debug settings after reading config file. * BUG 10544: s3: lib/util: set_namearray reads across end of namelist * BUG 10556: lib-util: Rename memdup to smb_memdup and fix all callers. o Kai Blin <kai at samba.org> * BUG 10609: CVE-2014-0239: dns: Don't reply to replies. o Alexander Bokovoy <ab at samba.org> * BUG 10517: Use exit_daemon() to communicate status of startup to systemd. o David Disseldorp &l...
2016 Oct 01
0
Wine release 1.9.20
...rect argument in SetClipboardData. webservices: Do not return uninitialized hr from write_headers_transport. webservices: Correctly grow buffer size in receive_message. services: Check for services without lpBinaryPathName in get_winedevice_process. server: Handle error when memdup fails in synthesize_formats. user32: Also release GMEM_FIXED data in free_cached_data. Vincent Povirk (8): gdiplus: Implement GdipBeginContainer. gdiplus/tests: Add tests for GdipBeginContainer. gdiplus: Implement BeginContainer metafile record. gdiplus/tests: Check r...
2008 Dec 14
1
Changes to ''rtmp''
...533557f464be4ef9fbbe Author: Benjamin Otte <otte at gnome.org> Date: Thu Nov 20 22:27:21 2008 +0100 rework Buffer <=> String conversions There''s an explicit Buffer.fromString function now, the rest takes data verbatim. Also included is a fix where we did memdup instead of strndup (no terminating 0 byte) commit c274552877a2f2b65884e6011e9f72e7b465fd18 Author: Benjamin Otte <otte at gnome.org> Date: Thu Nov 20 21:55:55 2008 +0100 make the socket cleanup after itself properly commit ebf80eb1fa25ad0c2e728b965d04072da9cb0d38 Author: Benjamin...