rugged 1.6.3 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cc31109e6df7461749b4e823c07b7f7bcba5b25a9eee0de18d9e66811f02f2d
4
- data.tar.gz: 5c6ee9dcc92ba1d9e528f709bcb6075b47d2bdabeb5f96a0fe13157f68ab8824
3
+ metadata.gz: 12d371c731e1e760c9398e56d9c483b7dd402b0cb8aa7114876979799f8391d7
4
+ data.tar.gz: d8f0d8e3d34848f5c47d417469bed92cadb5f19a22468d82025e0260c068fbdc
5
5
  SHA512:
6
- metadata.gz: 64cc9797783d455152a320da1019c732e3b2a4036f03410a89d0c6c3cd9f76f1b865df132006b0d9b5a631a0244736c105c3cbe5b778960f03ecec4b589646b5
7
- data.tar.gz: 68326e81b3b370bd6929648fada07d81b9dcbb1029995977b9528058f68e7f8691fd57d0a06fc5aeda394cfd734e2d39841cfb4a857f744ca6a931223bf71ed3
6
+ metadata.gz: 165ab860c19b8520d8bd4cf9aae47fe03206a4ac2fe2eea06d19680a178e85822778bc122a87792b44ec12e63d3139c30e8a0d466556f307acc72c968daf41b7
7
+ data.tar.gz: 2a9661cf572ea86ef8939b7e9d58f63ce4188d9050dedc461e48d3bf4face25abd87b1eaddafbeabc25a203cbb95710f884d5338577239763e668c4f14162093
@@ -4,5 +4,5 @@
4
4
  # For full terms see the included LICENSE file.
5
5
 
6
6
  module Rugged
7
- Version = VERSION = '1.6.3'
7
+ Version = VERSION = '1.6.5'
8
8
  end
@@ -6,7 +6,7 @@
6
6
 
7
7
  cmake_minimum_required(VERSION 3.5.1)
8
8
 
9
- project(libgit2 VERSION "1.6.3" LANGUAGES C)
9
+ project(libgit2 VERSION "1.6.5" LANGUAGES C)
10
10
 
11
11
  # Add find modules to the path
12
12
  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
@@ -11,7 +11,7 @@
11
11
  * The version string for libgit2. This string follows semantic
12
12
  * versioning (v2) guidelines.
13
13
  */
14
- #define LIBGIT2_VERSION "1.6.3"
14
+ #define LIBGIT2_VERSION "1.6.5"
15
15
 
16
16
  /** The major version number for this version of libgit2. */
17
17
  #define LIBGIT2_VER_MAJOR 1
@@ -20,7 +20,7 @@
20
20
  #define LIBGIT2_VER_MINOR 6
21
21
 
22
22
  /** The revision ("teeny") version number for this version of libgit2. */
23
- #define LIBGIT2_VER_REVISION 3
23
+ #define LIBGIT2_VER_REVISION 5
24
24
 
25
25
  /** The Windows DLL patch number for this version of libgit2. */
26
26
  #define LIBGIT2_VER_PATCH 0
@@ -1174,9 +1174,12 @@ int git_config__find_programdata(git_str *path)
1174
1174
  GIT_FS_PATH_OWNER_CURRENT_USER |
1175
1175
  GIT_FS_PATH_OWNER_ADMINISTRATOR;
1176
1176
  bool is_safe;
1177
+ int error;
1178
+
1179
+ if ((error = git_sysdir_find_programdata_file(path, GIT_CONFIG_FILENAME_PROGRAMDATA)) < 0)
1180
+ return error;
1177
1181
 
1178
- if (git_sysdir_find_programdata_file(path, GIT_CONFIG_FILENAME_PROGRAMDATA) < 0 ||
1179
- git_fs_path_owner_is(&is_safe, path->ptr, owner_level) < 0)
1182
+ if (git_fs_path_owner_is(&is_safe, path->ptr, owner_level) < 0)
1180
1183
  return -1;
1181
1184
 
1182
1185
  if (!is_safe) {
@@ -1148,10 +1148,13 @@ static int has_dir_name(git_index *index,
1148
1148
  size_t len, pos;
1149
1149
 
1150
1150
  for (;;) {
1151
- if (*--slash == '/')
1152
- break;
1151
+ slash--;
1152
+
1153
1153
  if (slash <= entry->path)
1154
1154
  return 0;
1155
+
1156
+ if (*slash == '/')
1157
+ break;
1155
1158
  }
1156
1159
  len = slash - name;
1157
1160
 
@@ -701,6 +701,7 @@ static int revparse(
701
701
  git_object *base_rev = NULL;
702
702
 
703
703
  bool should_return_reference = true;
704
+ bool parsed = false;
704
705
 
705
706
  GIT_ASSERT_ARG(object_out);
706
707
  GIT_ASSERT_ARG(reference_out);
@@ -710,7 +711,7 @@ static int revparse(
710
711
  *object_out = NULL;
711
712
  *reference_out = NULL;
712
713
 
713
- while (spec[pos]) {
714
+ while (!parsed && spec[pos]) {
714
715
  switch (spec[pos]) {
715
716
  case '^':
716
717
  should_return_reference = false;
@@ -817,6 +818,8 @@ static int revparse(
817
818
  break;
818
819
  } else if (spec[pos+1] == '\0') {
819
820
  spec = "HEAD";
821
+ identifier_len = 4;
822
+ parsed = true;
820
823
  break;
821
824
  }
822
825
  /* fall through */
@@ -226,7 +226,8 @@ static int set_data(
226
226
 
227
227
  GIT_ASSERT_ARG(data);
228
228
 
229
- if ((caps = memchr(line, '\0', len)) != NULL) {
229
+ if ((caps = memchr(line, '\0', len)) != NULL &&
230
+ len > (size_t)((caps - line) + 1)) {
230
231
  caps++;
231
232
 
232
233
  if (strncmp(caps, "object-format=", CONST_STRLEN("object-format=")) == 0)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugged
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-27 00:00:00.000000000 Z
12
+ date: 2024-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler