~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/libsvn_subr/sysinfo.c

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2014-02-20 20:38:10 UTC
  • mfrom: (0.2.11)
  • Revision ID: package-import@ubuntu.com-20140220203810-w61omsda8fs70pta
Tags: 1.8.8-1
* New upstream release.  Refresh patches.
  - Remove backported patches sqlite_3.8.x_workaround & swig-pl_build_fix
  - Fix integer overflows with 32-bit svnserv, which could cause an infinite
    loop (Closes: #738840) or inaccurate statistics (Closes: #738841)
  - Work around SQLite not honoring umask when creating rep-cache.db.
    (Closes: #735446)
  - Includes security fix:
    + CVE-2014-0032: mod_dav_svn crash when handling certain requests with
      SVNListParentPath on  (Closes: #737815)
* Add a subversion-dbg package.  (Closes: #508147)
* Bump libdb5.1-dev → libdb5.3-dev  (Closes: #738650)

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
    return NULL;
291
291
 
292
292
  svn_stringbuf_strip_whitespace(buffer);
 
293
 
 
294
  /* Now we split the currently allocated buffer in two parts:
 
295
      - a const char * HEAD
 
296
      - the remaining stringbuf_t. */
 
297
 
 
298
  /* Create HEAD as '\0' terminated const char * */
293
299
  key = buffer->data;
294
300
  end = strchr(key, delim);
295
301
  *end = '\0';
296
 
  buffer->len = 1 + end - key;
 
302
 
 
303
  /* And update the TAIL to be a smaller, but still valid stringbuf */
297
304
  buffer->data = end + 1;
 
305
  buffer->len -= 1 + end - key;
 
306
  buffer->blocksize -= 1 + end - key;
 
307
 
298
308
  svn_stringbuf_strip_whitespace(buffer);
299
309
 
300
310
  return key;