Codebase list protobuf-c / 7633466
New upstream version 1.3.2 Robert Edmonds 4 years ago
17 changed file(s) with 472 addition(s) and 288 deletion(s). Raw diff Collapse all Expand all
0 protobuf-c (1.3.2)
1 [ Robert Edmonds ]
2 * Release 1.3.2.
3
4 * Use protobuf 3.7.1 in the Travis-CI environment (#368).
5
6 * Fix test suite build failure on newer versions of protobuf (#369).
7
8 [ Ilya Lipnitskiy ]
9 * Fix proto3 repeated scalar field default packing behavior (#330, #377).
10
11 [ Adam Cozzette ]
12 * Fix out-of-bounds read in scan_length_prefixed_data() (#375, #376).
13
14 [ Jurriaan Bremer ]
15 * Fix -Wdeclaration-after-statement warning in parse_oneof_member() (#360).
16
17 [ Hayri Ugur Koltuk ]
18 * Fix SIGSEGV in protobuf_c_message_check() on messages with unpopulated
19 oneof members (#358).
20
21 [ Italo Guerrieri ]
22 * Do not allow tag values of 0 in protobuf messages, as these are not
23 allowed by proto2 or proto3 (#299).
24
025 protobuf-c (1.3.1)
126
227 [ Robert Edmonds ]
249249 EXTRA_DIST += \
250250 t/issue251/issue251.proto
251251
252 # Issue #330
253 check_PROGRAMS += \
254 t/issue330/issue330
255 TESTS += \
256 t/issue330/issue330
257 t_issue330_issue330_SOURCES = \
258 t/issue330/issue330.c \
259 t/issue330/issue330.pb-c.c
260 t_issue330_issue330_LDADD = \
261 protobuf-c/libprotobuf-c.la
262 t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue330/issue330.proto
263 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
264 BUILT_SOURCES += \
265 t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h
266 EXTRA_DIST += \
267 t/issue330/issue330.proto
268
269 # Issue #375
270 check_PROGRAMS += \
271 t/issue375/issue375
272 TESTS += \
273 t/issue375/issue375
274 t_issue375_issue375_SOURCES = \
275 t/issue375/issue375.c \
276 t/issue375/issue375.pb-c.c
277 t_issue375_issue375_LDADD = \
278 protobuf-c/libprotobuf-c.la
279 t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue375/issue375.proto
280 $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue375/issue375.proto
281 BUILT_SOURCES += \
282 t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h
283 EXTRA_DIST += \
284 t/issue375/issue375.proto
285
252286 endif # CROSS_COMPILING
253287
254288 endif # BUILD_COMPILER
138138 # Issue #220
139139
140140 # Issue #251
141
142 # Issue #330
143
144 # Issue #375
141145 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_11 = t/issue220/issue220 \
142 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251
146 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251 \
147 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330 \
148 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375
143149 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_12 = t/issue220/issue220 \
144 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251
150 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251 \
151 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330 \
152 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375
145153 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_13 = t/issue220/issue220.pb-c.c \
146154 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue220/issue220.pb-c.h \
147155 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.c \
148 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.h
156 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.h \
157 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c \
158 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.h \
159 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.c \
160 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.h
149161 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__append_14 = t/issue220/issue220.proto \
150 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.proto
162 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.proto \
163 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.proto \
164 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.proto
151165 subdir = .
152166 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
153167 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
177191 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/version/version$(EXEEXT)
178192 @BUILD_COMPILER_TRUE@@BUILD_PROTO3_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_3 = t/generated-code3/test-generated-code3$(EXEEXT)
179193 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_4 = t/issue220/issue220$(EXEEXT) \
180 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251$(EXEEXT)
194 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251$(EXEEXT) \
195 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330$(EXEEXT) \
196 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375$(EXEEXT)
181197 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am__EXEEXT_5 = t/generated-code2/cxx-generate-packed-data$(EXEEXT)
182198 PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
183199 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
304320 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue251/issue251.pb-c.$(OBJEXT)
305321 t_issue251_issue251_OBJECTS = $(am_t_issue251_issue251_OBJECTS)
306322 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue251_issue251_DEPENDENCIES = protobuf-c/libprotobuf-c.la
323 am__t_issue330_issue330_SOURCES_DIST = t/issue330/issue330.c \
324 t/issue330/issue330.pb-c.c
325 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_issue330_issue330_OBJECTS = t/issue330/issue330.$(OBJEXT) \
326 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.$(OBJEXT)
327 t_issue330_issue330_OBJECTS = $(am_t_issue330_issue330_OBJECTS)
328 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_DEPENDENCIES = protobuf-c/libprotobuf-c.la
329 am__t_issue375_issue375_SOURCES_DIST = t/issue375/issue375.c \
330 t/issue375/issue375.pb-c.c
331 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_issue375_issue375_OBJECTS = t/issue375/issue375.$(OBJEXT) \
332 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.$(OBJEXT)
333 t_issue375_issue375_OBJECTS = $(am_t_issue375_issue375_OBJECTS)
334 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_DEPENDENCIES = protobuf-c/libprotobuf-c.la
307335 am__t_version_version_SOURCES_DIST = t/version/version.c
308336 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@am_t_version_version_OBJECTS = t/version/version.$(OBJEXT)
309337 t_version_version_OBJECTS = $(am_t_version_version_OBJECTS)
350378 t/issue220/$(DEPDIR)/issue220.pb-c.Po \
351379 t/issue251/$(DEPDIR)/issue251.Po \
352380 t/issue251/$(DEPDIR)/issue251.pb-c.Po \
381 t/issue330/$(DEPDIR)/issue330.Po \
382 t/issue330/$(DEPDIR)/issue330.pb-c.Po \
383 t/issue375/$(DEPDIR)/issue375.Po \
384 t/issue375/$(DEPDIR)/issue375.pb-c.Po \
353385 t/version/$(DEPDIR)/version.Po
354386 am__mv = mv -f
355387 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
395427 $(t_generated_code2_test_generated_code2_SOURCES) \
396428 $(t_generated_code3_test_generated_code3_SOURCES) \
397429 $(t_issue220_issue220_SOURCES) $(t_issue251_issue251_SOURCES) \
430 $(t_issue330_issue330_SOURCES) $(t_issue375_issue375_SOURCES) \
398431 $(t_version_version_SOURCES)
399432 DIST_SOURCES = $(protobuf_c_libprotobuf_c_la_SOURCES) \
400433 $(am__protoc_c_protoc_gen_c_SOURCES_DIST) \
404437 $(am__t_generated_code3_test_generated_code3_SOURCES_DIST) \
405438 $(am__t_issue220_issue220_SOURCES_DIST) \
406439 $(am__t_issue251_issue251_SOURCES_DIST) \
440 $(am__t_issue330_issue330_SOURCES_DIST) \
441 $(am__t_issue375_issue375_SOURCES_DIST) \
407442 $(am__t_version_version_SOURCES_DIST)
408443 am__can_run_installinfo = \
409444 case $$AM_UPDATE_INFO_DIR in \
923958 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue251_issue251_LDADD = \
924959 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
925960
961 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_SOURCES = \
962 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.c \
963 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue330/issue330.pb-c.c
964
965 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue330_issue330_LDADD = \
966 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
967
968 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_SOURCES = \
969 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.c \
970 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ t/issue375/issue375.pb-c.c
971
972 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t_issue375_issue375_LDADD = \
973 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ protobuf-c/libprotobuf-c.la
974
926975 all: $(BUILT_SOURCES) config.h
927976 $(MAKE) $(AM_MAKEFLAGS) all-am
928977
12171266 t/issue251/issue251$(EXEEXT): $(t_issue251_issue251_OBJECTS) $(t_issue251_issue251_DEPENDENCIES) $(EXTRA_t_issue251_issue251_DEPENDENCIES) t/issue251/$(am__dirstamp)
12181267 @rm -f t/issue251/issue251$(EXEEXT)
12191268 $(AM_V_CCLD)$(LINK) $(t_issue251_issue251_OBJECTS) $(t_issue251_issue251_LDADD) $(LIBS)
1269 t/issue330/$(am__dirstamp):
1270 @$(MKDIR_P) t/issue330
1271 @: > t/issue330/$(am__dirstamp)
1272 t/issue330/$(DEPDIR)/$(am__dirstamp):
1273 @$(MKDIR_P) t/issue330/$(DEPDIR)
1274 @: > t/issue330/$(DEPDIR)/$(am__dirstamp)
1275 t/issue330/issue330.$(OBJEXT): t/issue330/$(am__dirstamp) \
1276 t/issue330/$(DEPDIR)/$(am__dirstamp)
1277 t/issue330/issue330.pb-c.$(OBJEXT): t/issue330/$(am__dirstamp) \
1278 t/issue330/$(DEPDIR)/$(am__dirstamp)
1279
1280 t/issue330/issue330$(EXEEXT): $(t_issue330_issue330_OBJECTS) $(t_issue330_issue330_DEPENDENCIES) $(EXTRA_t_issue330_issue330_DEPENDENCIES) t/issue330/$(am__dirstamp)
1281 @rm -f t/issue330/issue330$(EXEEXT)
1282 $(AM_V_CCLD)$(LINK) $(t_issue330_issue330_OBJECTS) $(t_issue330_issue330_LDADD) $(LIBS)
1283 t/issue375/$(am__dirstamp):
1284 @$(MKDIR_P) t/issue375
1285 @: > t/issue375/$(am__dirstamp)
1286 t/issue375/$(DEPDIR)/$(am__dirstamp):
1287 @$(MKDIR_P) t/issue375/$(DEPDIR)
1288 @: > t/issue375/$(DEPDIR)/$(am__dirstamp)
1289 t/issue375/issue375.$(OBJEXT): t/issue375/$(am__dirstamp) \
1290 t/issue375/$(DEPDIR)/$(am__dirstamp)
1291 t/issue375/issue375.pb-c.$(OBJEXT): t/issue375/$(am__dirstamp) \
1292 t/issue375/$(DEPDIR)/$(am__dirstamp)
1293
1294 t/issue375/issue375$(EXEEXT): $(t_issue375_issue375_OBJECTS) $(t_issue375_issue375_DEPENDENCIES) $(EXTRA_t_issue375_issue375_DEPENDENCIES) t/issue375/$(am__dirstamp)
1295 @rm -f t/issue375/issue375$(EXEEXT)
1296 $(AM_V_CCLD)$(LINK) $(t_issue375_issue375_OBJECTS) $(t_issue375_issue375_LDADD) $(LIBS)
12201297 t/version/$(am__dirstamp):
12211298 @$(MKDIR_P) t/version
12221299 @: > t/version/$(am__dirstamp)
12401317 -rm -f t/generated-code2/*.$(OBJEXT)
12411318 -rm -f t/issue220/*.$(OBJEXT)
12421319 -rm -f t/issue251/*.$(OBJEXT)
1320 -rm -f t/issue330/*.$(OBJEXT)
1321 -rm -f t/issue375/*.$(OBJEXT)
12431322 -rm -f t/version/*.$(OBJEXT)
12441323
12451324 distclean-compile:
12731352 @AMDEP_TRUE@@am__include@ @am__quote@t/issue220/$(DEPDIR)/issue220.pb-c.Po@am__quote@ # am--include-marker
12741353 @AMDEP_TRUE@@am__include@ @am__quote@t/issue251/$(DEPDIR)/issue251.Po@am__quote@ # am--include-marker
12751354 @AMDEP_TRUE@@am__include@ @am__quote@t/issue251/$(DEPDIR)/issue251.pb-c.Po@am__quote@ # am--include-marker
1355 @AMDEP_TRUE@@am__include@ @am__quote@t/issue330/$(DEPDIR)/issue330.Po@am__quote@ # am--include-marker
1356 @AMDEP_TRUE@@am__include@ @am__quote@t/issue330/$(DEPDIR)/issue330.pb-c.Po@am__quote@ # am--include-marker
1357 @AMDEP_TRUE@@am__include@ @am__quote@t/issue375/$(DEPDIR)/issue375.Po@am__quote@ # am--include-marker
1358 @AMDEP_TRUE@@am__include@ @am__quote@t/issue375/$(DEPDIR)/issue375.pb-c.Po@am__quote@ # am--include-marker
12761359 @AMDEP_TRUE@@am__include@ @am__quote@t/version/$(DEPDIR)/version.Po@am__quote@ # am--include-marker
12771360
12781361 $(am__depfiles_remade):
15931676 -rm -rf t/generated-code3/.libs t/generated-code3/_libs
15941677 -rm -rf t/issue220/.libs t/issue220/_libs
15951678 -rm -rf t/issue251/.libs t/issue251/_libs
1679 -rm -rf t/issue330/.libs t/issue330/_libs
1680 -rm -rf t/issue375/.libs t/issue375/_libs
15961681 -rm -rf t/version/.libs t/version/_libs
15971682
15981683 distclean-libtool:
18851970 --log-file $$b.log --trs-file $$b.trs \
18861971 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
18871972 "$$tst" $(AM_TESTS_FD_REDIRECT)
1973 t/issue330/issue330.log: t/issue330/issue330$(EXEEXT)
1974 @p='t/issue330/issue330$(EXEEXT)'; \
1975 b='t/issue330/issue330'; \
1976 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1977 --log-file $$b.log --trs-file $$b.trs \
1978 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1979 "$$tst" $(AM_TESTS_FD_REDIRECT)
1980 t/issue375/issue375.log: t/issue375/issue375$(EXEEXT)
1981 @p='t/issue375/issue375$(EXEEXT)'; \
1982 b='t/issue375/issue375'; \
1983 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
1984 --log-file $$b.log --trs-file $$b.trs \
1985 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
1986 "$$tst" $(AM_TESTS_FD_REDIRECT)
18881987 .test.log:
18891988 @p='$<'; \
18901989 $(am__set_b); \
21282227 -rm -f t/issue220/$(am__dirstamp)
21292228 -rm -f t/issue251/$(DEPDIR)/$(am__dirstamp)
21302229 -rm -f t/issue251/$(am__dirstamp)
2230 -rm -f t/issue330/$(DEPDIR)/$(am__dirstamp)
2231 -rm -f t/issue330/$(am__dirstamp)
2232 -rm -f t/issue375/$(DEPDIR)/$(am__dirstamp)
2233 -rm -f t/issue375/$(am__dirstamp)
21312234 -rm -f t/version/$(DEPDIR)/$(am__dirstamp)
21322235 -rm -f t/version/$(am__dirstamp)
21332236 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
21752278 -rm -f t/issue220/$(DEPDIR)/issue220.pb-c.Po
21762279 -rm -f t/issue251/$(DEPDIR)/issue251.Po
21772280 -rm -f t/issue251/$(DEPDIR)/issue251.pb-c.Po
2281 -rm -f t/issue330/$(DEPDIR)/issue330.Po
2282 -rm -f t/issue330/$(DEPDIR)/issue330.pb-c.Po
2283 -rm -f t/issue375/$(DEPDIR)/issue375.Po
2284 -rm -f t/issue375/$(DEPDIR)/issue375.pb-c.Po
21782285 -rm -f t/version/$(DEPDIR)/version.Po
21792286 -rm -f Makefile
21802287 distclean-am: clean-am distclean-compile distclean-generic \
22532360 -rm -f t/issue220/$(DEPDIR)/issue220.pb-c.Po
22542361 -rm -f t/issue251/$(DEPDIR)/issue251.Po
22552362 -rm -f t/issue251/$(DEPDIR)/issue251.pb-c.Po
2363 -rm -f t/issue330/$(DEPDIR)/issue330.Po
2364 -rm -f t/issue330/$(DEPDIR)/issue330.pb-c.Po
2365 -rm -f t/issue375/$(DEPDIR)/issue375.Po
2366 -rm -f t/issue375/$(DEPDIR)/issue375.pb-c.Po
22562367 -rm -f t/version/$(DEPDIR)/version.Po
22572368 -rm -f Makefile
22582369 maintainer-clean-am: distclean-am maintainer-clean-generic
23342445 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue220/issue220.proto
23352446 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue251/issue251.pb-c.c t/issue251/issue251.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue251/issue251.proto
23362447 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue251/issue251.proto
2448 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue330/issue330.pb-c.c t/issue330/issue330.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue330/issue330.proto
2449 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue330/issue330.proto
2450 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@t/issue375/issue375.pb-c.c t/issue375/issue375.pb-c.h: $(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) $(top_srcdir)/t/issue375/issue375.proto
2451 @BUILD_COMPILER_TRUE@@CROSS_COMPILING_FALSE@ $(AM_V_GEN)@PROTOC@ --plugin=protoc-gen-c=$(top_builddir)/protoc-c/protoc-gen-c$(EXEEXT) -I$(top_srcdir) --c_out=$(top_builddir) $(top_srcdir)/t/issue375/issue375.proto
23372452
23382453 dist-hook:
23392454 rm -f `find $(distdir) -name '*.pb-c.[ch]' -o -name '*.pb.cc' -o -name '*.pb.h'`
3030
3131 PROGRAM=libtool
3232 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-2.1"
33 VERSION="2.4.6 Debian-2.4.6-10"
3434 package_revision=2.4.6
3535
3636
6363 # libraries, which are installed to $pkgauxdir.
6464
6565 # Set a version string for this script.
66 scriptversion=2015-10-12.13; # UTC
66 scriptversion=2015-01-20.17; # UTC
6767
6868 # General shell script boiler plate, and helper functions.
6969 # Written by Gary V. Vaughan, 2004
579579 {
580580 $debug_cmd
581581
582 func_quote_arg pretty "$2"
583 eval "$1+=\\ \$func_quote_arg_result"
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584584 }'
585585 else
586586 func_append_quoted ()
587587 {
588588 $debug_cmd
589589
590 func_quote_arg pretty "$2"
591 eval "$1=\$$1\\ \$func_quote_arg_result"
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592592 }
593593 fi
594594
10901090 }
10911091
10921092
1093 # func_quote_portable EVAL ARG
1094 # ----------------------------
1095 # Internal function to portably implement func_quote_arg. Note that we still
1096 # keep attention to performance here so we as much as possible try to avoid
1097 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1098 func_quote_portable ()
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
10991103 {
11001104 $debug_cmd
11011105
1102 func_quote_portable_result=$2
1103
1104 # one-time-loop (easy break)
1105 while true
1106 do
1107 if $1; then
1108 func_quote_portable_result=`$ECHO "$2" | $SED \
1109 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1110 break
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
11111119 fi
11121120
1113 # Quote for eval.
1114 case $func_quote_portable_result in
1115 *[\\\`\"\$]*)
1116 case $func_quote_portable_result in
1117 *[\[\*\?]*)
1118 func_quote_portable_result=`$ECHO "$func_quote_portable_result" | $SED "$sed_quote_subst"`
1119 break
1120 ;;
1121 esac
1122
1123 func_quote_portable_old_IFS=$IFS
1124 for _G_char in '\' '`' '"' '$'
1125 do
1126 # STATE($1) PREV($2) SEPARATOR($3)
1127 set start "" ""
1128 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1129 IFS=$_G_char
1130 for _G_part in $func_quote_portable_result
1131 do
1132 case $1 in
1133 quote)
1134 func_append func_quote_portable_result "$3$2"
1135 set quote "$_G_part" "\\$_G_char"
1136 ;;
1137 start)
1138 set first "" ""
1139 func_quote_portable_result=
1140 ;;
1141 first)
1142 set quote "$_G_part" ""
1143 ;;
1144 esac
1145 done
1146 done
1147 IFS=$func_quote_portable_old_IFS
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
11481129 ;;
1149 *) ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
11501133 esac
1151 break
1152 done
1153
1154 func_quote_portable_unquoted_result=$func_quote_portable_result
1155 case $func_quote_portable_result in
1156 # double-quote args containing shell metacharacters to delay
1157 # word splitting, command substitution and variable expansion
1158 # for a subsequent eval.
1159 # many bourne shells cannot handle close brackets correctly
1160 # in scan sets, so we specify it separately.
1161 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1162 func_quote_portable_result=\"$func_quote_portable_result\"
1163 ;;
1164 esac
1165 }
1166
1167
1168 # func_quotefast_eval ARG
1169 # -----------------------
1170 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1171 # but optimized for speed. Result is stored in $func_quotefast_eval.
1172 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1173 func_quotefast_eval ()
1174 {
1175 printf -v func_quotefast_eval_result %q "$1"
1176 }
1177 else
1178 func_quotefast_eval ()
1179 {
1180 func_quote_portable false "$1"
1181 func_quotefast_eval_result=$func_quote_portable_result
1182 }
1183 fi
1184
1185
1186 # func_quote_arg MODEs ARG
1187 # ------------------------
1188 # Quote one ARG to be evaled later. MODEs argument may contain zero ore more
1189 # specifiers listed below separated by ',' character. This function returns two
1190 # values:
1191 # i) func_quote_arg_result
1192 # double-quoted (when needed), suitable for a subsequent eval
1193 # ii) func_quote_arg_unquoted_result
1194 # has all characters that are still active within double
1195 # quotes backslashified. Available only if 'unquoted' is specified.
1196 #
1197 # Available modes:
1198 # ----------------
1199 # 'eval' (default)
1200 # - escape shell special characters
1201 # 'expand'
1202 # - the same as 'eval'; but do not quote variable references
1203 # 'pretty'
1204 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1205 # later used in func_quote to get output like: 'echo "a b"' instead of
1206 # 'echo a\ b'. This is slower than default on some shells.
1207 # 'unquoted'
1208 # - produce also $func_quote_arg_unquoted_result which does not contain
1209 # wrapping double-quotes.
1210 #
1211 # Examples for 'func_quote_arg pretty,unquoted string':
1212 #
1213 # string | *_result | *_unquoted_result
1214 # ------------+-----------------------+-------------------
1215 # " | \" | \"
1216 # a b | "a b" | a b
1217 # "a b" | "\"a b\"" | \"a b\"
1218 # * | "*" | *
1219 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1220 #
1221 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1222 #
1223 # string | *_result | *_unquoted_result
1224 # --------------+---------------------+--------------------
1225 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1226 func_quote_arg ()
1227 {
1228 _G_quote_expand=false
1229 case ,$1, in
1230 *,expand,*)
1231 _G_quote_expand=:
1232 ;;
1233 esac
1234
1235 case ,$1, in
1236 *,pretty,*|*,expand,*|*,unquoted,*)
1237 func_quote_portable $_G_quote_expand "$2"
1238 func_quote_arg_result=$func_quote_portable_result
1239 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1240 ;;
1241 *)
1242 # Faster quote-for-eval for some shells.
1243 func_quotefast_eval "$2"
1244 func_quote_arg_result=$func_quotefast_eval_result
1245 ;;
1246 esac
1247 }
1248
1249
1250 # func_quote MODEs ARGs...
1251 # ------------------------
1252 # Quote all ARGs to be evaled later and join them into single command. See
1253 # func_quote_arg's description for more info.
1254 func_quote ()
1255 {
1256 $debug_cmd
1257 _G_func_quote_mode=$1 ; shift
1258 func_quote_result=
1259 while test 0 -lt $#; do
1260 func_quote_arg "$_G_func_quote_mode" "$1"
1261 if test -n "$func_quote_result"; then
1262 func_append func_quote_result " $func_quote_arg_result"
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
12631137 else
1264 func_append func_quote_result "$func_quote_arg_result"
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
12651139 fi
12661140 shift
12671141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
12681172 }
12691173
12701174
13101214 _G_cmd=$1
13111215 _G_fail_exp=${2-':'}
13121216
1313 func_quote_arg pretty,expand "$_G_cmd"
1314 eval "func_notquiet $func_quote_arg_result"
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
13151219
13161220 $opt_dry_run || {
13171221 eval "$_G_cmd"
13361240 _G_fail_exp=${2-':'}
13371241
13381242 $opt_quiet || {
1339 func_quote_arg expand,pretty "$_G_cmd"
1340 eval "func_echo $func_quote_arg_result"
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
13411245 }
13421246
13431247 $opt_dry_run || {
14651369 #! /bin/sh
14661370
14671371 # Set a version string for this script.
1468 scriptversion=2015-10-12.13; # UTC
1372 scriptversion=2015-10-07.11; # UTC
14691373
14701374 # A portable, pluggable option parser for Bourne shell.
14711375 # Written by Gary V. Vaughan, 2010
16751579 # '
16761580 # # No change in '$@' (ignored completely by this hook). There is
16771581 # # no need to do the equivalent (but slower) action:
1678 # # func_quote eval ${1+"$@"}
1679 # # my_options_prep_result=$func_quote_result
1582 # # func_quote_for_eval ${1+"$@"}
1583 # # my_options_prep_result=$func_quote_for_eval_result
16801584 # false
16811585 # }
16821586 # func_add_hook func_options_prep my_options_prep
17121616 # done
17131617 #
17141618 # if $args_changed; then
1715 # func_quote eval ${1+"$@"}
1716 # my_silent_option_result=$func_quote_result
1619 # func_quote_for_eval ${1+"$@"}
1620 # my_silent_option_result=$func_quote_for_eval_result
17171621 # fi
17181622 #
17191623 # $args_changed
17801684 if $_G_rc_options; then
17811685 func_options_result=$_G_res_var
17821686 else
1783 func_quote eval ${1+"$@"}
1784 func_options_result=$func_quote_result
1687 func_quote_for_eval ${1+"$@"}
1688 func_options_result=$func_quote_for_eval_result
17851689 fi
17861690
17871691 $_G_rc_options
19241828
19251829 if $_G_rc_parse_options; then
19261830 # save modified positional parameters for caller
1927 func_quote eval ${1+"$@"}
1928 func_parse_options_result=$func_quote_result
1831 func_quote_for_eval ${1+"$@"}
1832 func_parse_options_result=$func_quote_for_eval_result
19291833 fi
19301834
19311835 $_G_rc_parse_options
22362140 compiler: $LTCC
22372141 compiler flags: $LTCFLAGS
22382142 linker: $LD (gnu? $with_gnu_ld)
2239 version: $progname $scriptversion Debian-2.4.6-2.1
2143 version: $progname $scriptversion Debian-2.4.6-10
22402144 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
22412145 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
22422146
24702374
24712375 if $_G_rc_lt_options_prep; then
24722376 # Pass back the list of options.
2473 func_quote eval ${1+"$@"}
2474 libtool_options_prep_result=$func_quote_result
2377 func_quote_for_eval ${1+"$@"}
2378 libtool_options_prep_result=$func_quote_for_eval_result
24752379 fi
24762380
24772381 $_G_rc_lt_options_prep
25772481
25782482 if $_G_rc_lt_parse_options; then
25792483 # save modified positional parameters for caller
2580 func_quote eval ${1+"$@"}
2581 libtool_parse_options_result=$func_quote_result
2484 func_quote_for_eval ${1+"$@"}
2485 libtool_parse_options_result=$func_quote_for_eval_result
25822486 fi
25832487
25842488 $_G_rc_lt_parse_options
26382542 }
26392543
26402544 # Pass back the unparsed argument list
2641 func_quote eval ${1+"$@"}
2642 libtool_validate_options_result=$func_quote_result
2545 func_quote_for_eval ${1+"$@"}
2546 libtool_validate_options_result=$func_quote_for_eval_result
26432547 }
26442548 func_add_hook func_validate_options libtool_validate_options
26452549
36053509 esac
36063510 done
36073511
3608 func_quote_arg pretty "$libobj"
3609 test "X$libobj" != "X$func_quote_arg_result" \
3512 func_quote_for_eval "$libobj"
3513 test "X$libobj" != "X$func_quote_for_eval_result" \
36103514 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
36113515 && func_warning "libobj name '$libobj' may not contain shell special characters."
36123516 func_dirname_and_basename "$obj" "/" ""
36793583
36803584 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
36813585 srcfile=$func_to_tool_file_result
3682 func_quote_arg pretty "$srcfile"
3683 qsrcfile=$func_quote_arg_result
3586 func_quote_for_eval "$srcfile"
3587 qsrcfile=$func_quote_for_eval_result
36843588
36853589 # Only build a PIC object if we are building libtool libraries.
36863590 if test yes = "$build_libtool_libs"; then
42834187 case $nonopt in *shtool*) :;; *) false;; esac
42844188 then
42854189 # Aesthetically quote it.
4286 func_quote_arg pretty "$nonopt"
4287 install_prog="$func_quote_arg_result "
4190 func_quote_for_eval "$nonopt"
4191 install_prog="$func_quote_for_eval_result "
42884192 arg=$1
42894193 shift
42904194 else
42944198
42954199 # The real first argument should be the name of the installation program.
42964200 # Aesthetically quote it.
4297 func_quote_arg pretty "$arg"
4298 func_append install_prog "$func_quote_arg_result"
4201 func_quote_for_eval "$arg"
4202 func_append install_prog "$func_quote_for_eval_result"
42994203 install_shared_prog=$install_prog
43004204 case " $install_prog " in
43014205 *[\\\ /]cp\ *) install_cp=: ;;
43524256 esac
43534257
43544258 # Aesthetically quote the argument.
4355 func_quote_arg pretty "$arg"
4356 func_append install_prog " $func_quote_arg_result"
4259 func_quote_for_eval "$arg"
4260 func_append install_prog " $func_quote_for_eval_result"
43574261 if test -n "$arg2"; then
4358 func_quote_arg pretty "$arg2"
4262 func_quote_for_eval "$arg2"
43594263 fi
4360 func_append install_shared_prog " $func_quote_arg_result"
4264 func_append install_shared_prog " $func_quote_for_eval_result"
43614265 done
43624266
43634267 test -z "$install_prog" && \
43684272
43694273 if test -n "$install_override_mode" && $no_mode; then
43704274 if $install_cp; then :; else
4371 func_quote_arg pretty "$install_override_mode"
4372 func_append install_shared_prog " -m $func_quote_arg_result"
4275 func_quote_for_eval "$install_override_mode"
4276 func_append install_shared_prog " -m $func_quote_for_eval_result"
43734277 fi
43744278 fi
43754279
46654569 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
46664570
46674571 $opt_quiet || {
4668 func_quote_arg expand,pretty "$relink_command"
4669 eval "func_echo $func_quote_arg_result"
4572 func_quote_for_expand "$relink_command"
4573 eval "func_echo $func_quote_for_expand_result"
46704574 }
46714575 if eval "$relink_command"; then :
46724576 else
54455349 if test \"\$libtool_execute_magic\" != \"$magic\"; then
54465350 file=\"\$0\""
54475351
5448 func_quote_arg pretty "$ECHO"
5449 qECHO=$func_quote_arg_result
5352 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
54505353 $ECHO "\
54515354
54525355 # A function that is used when there is no print builtin or printf.
54565359 \$1
54575360 _LTECHO_EOF'
54585361 }
5459 ECHO=$qECHO
5362 ECHO=\"$qECHO\"
54605363 fi
54615364
54625365 # Very basic option parsing. These options are (a) specific to
67996702 while test "$#" -gt 0; do
68006703 arg=$1
68016704 shift
6802 func_quote_arg pretty,unquoted "$arg"
6803 qarg=$func_quote_arg_unquoted_result
6804 func_append libtool_args " $func_quote_arg_result"
6705 func_quote_for_eval "$arg"
6706 qarg=$func_quote_for_eval_unquoted_result
6707 func_append libtool_args " $func_quote_for_eval_result"
68056708
68066709 # If the previous option needs an argument, assign it.
68076710 if test -n "$prev"; then
73997302 save_ifs=$IFS; IFS=,
74007303 for flag in $args; do
74017304 IFS=$save_ifs
7402 func_quote_arg pretty "$flag"
7403 func_append arg " $func_quote_arg_result"
7404 func_append compiler_flags " $func_quote_arg_result"
7305 func_quote_for_eval "$flag"
7306 func_append arg " $func_quote_for_eval_result"
7307 func_append compiler_flags " $func_quote_for_eval_result"
74057308 done
74067309 IFS=$save_ifs
74077310 func_stripname ' ' '' "$arg"
74157318 save_ifs=$IFS; IFS=,
74167319 for flag in $args; do
74177320 IFS=$save_ifs
7418 func_quote_arg pretty "$flag"
7419 func_append arg " $wl$func_quote_arg_result"
7420 func_append compiler_flags " $wl$func_quote_arg_result"
7421 func_append linker_flags " $func_quote_arg_result"
7321 func_quote_for_eval "$flag"
7322 func_append arg " $wl$func_quote_for_eval_result"
7323 func_append compiler_flags " $wl$func_quote_for_eval_result"
7324 func_append linker_flags " $func_quote_for_eval_result"
74227325 done
74237326 IFS=$save_ifs
74247327 func_stripname ' ' '' "$arg"
74427345
74437346 # -msg_* for osf cc
74447347 -msg_*)
7445 func_quote_arg pretty "$arg"
7446 arg=$func_quote_arg_result
7348 func_quote_for_eval "$arg"
7349 arg=$func_quote_for_eval_result
74477350 ;;
74487351
74497352 # Flags to be passed through unchanged, with rationale:
74637366 # -specs=* GCC specs files
74647367 # -stdlib=* select c++ std lib with clang
74657368 # -fsanitize=* Clang/GCC memory and address sanitizer
7369 # -fuse-ld=* Linker select flags for GCC
74667370 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
74677371 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
74687372 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7469 -specs=*|-fsanitize=*)
7470 func_quote_arg pretty "$arg"
7471 arg=$func_quote_arg_result
7373 -specs=*|-fsanitize=*|-fuse-ld=*)
7374 func_quote_for_eval "$arg"
7375 arg=$func_quote_for_eval_result
74727376 func_append compile_command " $arg"
74737377 func_append finalize_command " $arg"
74747378 func_append compiler_flags " $arg"
74897393 continue
74907394 else
74917395 # Otherwise treat like 'Some other compiler flag' below
7492 func_quote_arg pretty "$arg"
7493 arg=$func_quote_arg_result
7396 func_quote_for_eval "$arg"
7397 arg=$func_quote_for_eval_result
74947398 fi
74957399 ;;
74967400
74977401 # Some other compiler flag.
74987402 -* | +*)
7499 func_quote_arg pretty "$arg"
7500 arg=$func_quote_arg_result
7403 func_quote_for_eval "$arg"
7404 arg=$func_quote_for_eval_result
75017405 ;;
75027406
75037407 *.$objext)
76177521 *)
76187522 # Unknown arguments in both finalize_command and compile_command need
76197523 # to be aesthetically quoted because they are evaled later.
7620 func_quote_arg pretty "$arg"
7621 arg=$func_quote_arg_result
7524 func_quote_for_eval "$arg"
7525 arg=$func_quote_for_eval_result
76227526 ;;
76237527 esac # arg
76247528
1013010034 for cmd in $concat_cmds; do
1013110035 IFS=$save_ifs
1013210036 $opt_quiet || {
10133 func_quote_arg expand,pretty "$cmd"
10134 eval "func_echo $func_quote_arg_result"
10037 func_quote_for_expand "$cmd"
10038 eval "func_echo $func_quote_for_expand_result"
1013510039 }
1013610040 $opt_dry_run || eval "$cmd" || {
1013710041 lt_exit=$?
1022410128 eval cmd=\"$cmd\"
1022510129 IFS=$save_ifs
1022610130 $opt_quiet || {
10227 func_quote_arg expand,pretty "$cmd"
10228 eval "func_echo $func_quote_arg_result"
10131 func_quote_for_expand "$cmd"
10132 eval "func_echo $func_quote_for_expand_result"
1022910133 }
1023010134 $opt_dry_run || eval "$cmd" || {
1023110135 lt_exit=$?
1069910603 elif eval var_value=\$$var; test -z "$var_value"; then
1070010604 relink_command="$var=; export $var; $relink_command"
1070110605 else
10702 func_quote_arg pretty "$var_value"
10703 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
10606 func_quote_for_eval "$var_value"
10607 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
1070410608 fi
1070510609 done
10706 func_quote_arg pretty,unquoted "(cd `pwd`; $relink_command)"
10707 relink_command=$func_quote_arg_unquoted_result
10610 relink_command="(cd `pwd`; $relink_command)"
10611 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
1070810612 fi
1070910613
1071010614 # Only actually do things if not in dry run mode.
1094410848 elif eval var_value=\$$var; test -z "$var_value"; then
1094510849 relink_command="$var=; export $var; $relink_command"
1094610850 else
10947 func_quote_arg pretty,unquoted "$var_value"
10948 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
10851 func_quote_for_eval "$var_value"
10852 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
1094910853 fi
1095010854 done
1095110855 # Quote the link command for shipping.
1095210856 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10953 func_quote_arg pretty,unquoted "$relink_command"
10954 relink_command=$func_quote_arg_unquoted_result
10857 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
1095510858 if test yes = "$hardcode_automatic"; then
1095610859 relink_command=
1095710860 fi
00 SET(PACKAGE protobuf-c)
11 SET(PACKAGE_NAME protobuf-c)
2 SET(PACKAGE_VERSION 1.3.1)
2 SET(PACKAGE_VERSION 1.3.2)
33
44
55 CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for protobuf-c 1.3.1.
2 # Generated by GNU Autoconf 2.69 for protobuf-c 1.3.2.
33 #
44 # Report bugs to <https://github.com/protobuf-c/protobuf-c/issues>.
55 #
589589 # Identity of this package.
590590 PACKAGE_NAME='protobuf-c'
591591 PACKAGE_TARNAME='protobuf-c'
592 PACKAGE_VERSION='1.3.1'
593 PACKAGE_STRING='protobuf-c 1.3.1'
592 PACKAGE_VERSION='1.3.2'
593 PACKAGE_STRING='protobuf-c 1.3.2'
594594 PACKAGE_BUGREPORT='https://github.com/protobuf-c/protobuf-c/issues'
595595 PACKAGE_URL='https://github.com/protobuf-c/protobuf-c'
596596
13771377 # Omit some internal or obsolete options to make the list less imposing.
13781378 # This message is too long to be a string in the A/UX 3.1 sh.
13791379 cat <<_ACEOF
1380 \`configure' configures protobuf-c 1.3.1 to adapt to many kinds of systems.
1380 \`configure' configures protobuf-c 1.3.2 to adapt to many kinds of systems.
13811381
13821382 Usage: $0 [OPTION]... [VAR=VALUE]...
13831383
14481448
14491449 if test -n "$ac_init_help"; then
14501450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of protobuf-c 1.3.1:";;
1451 short | recursive ) echo "Configuration of protobuf-c 1.3.2:";;
14521452 esac
14531453 cat <<\_ACEOF
14541454
15811581 test -n "$ac_init_help" && exit $ac_status
15821582 if $ac_init_version; then
15831583 cat <<\_ACEOF
1584 protobuf-c configure 1.3.1
1584 protobuf-c configure 1.3.2
15851585 generated by GNU Autoconf 2.69
15861586
15871587 Copyright (C) 2012 Free Software Foundation, Inc.
22042204 This file contains any messages produced by compilers while
22052205 running configure, to aid debugging if configure makes a mistake.
22062206
2207 It was created by protobuf-c $as_me 1.3.1, which was
2207 It was created by protobuf-c $as_me 1.3.2, which was
22082208 generated by GNU Autoconf 2.69. Invocation command line was
22092209
22102210 $ $0 $@
30713071
30723072 # Define the identity of the package.
30733073 PACKAGE='protobuf-c'
3074 VERSION='1.3.1'
3074 VERSION='1.3.2'
30753075
30763076
30773077 cat >>confdefs.h <<_ACEOF
76227622 test $ac_status = 0; }; then
76237623 # Now try to grab the symbols.
76247624 nlist=conftest.nm
7625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7626 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7627 ac_status=$?
7628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7629 test $ac_status = 0; } && test -s "$nlist"; then
7625 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7626 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
76307627 # Try sorting and uniquifying the output.
76317628 if sort "$nlist" | uniq > "$nlist"T; then
76327629 mv -f "$nlist"T "$nlist"
97179714 ecc*)
97189715 lt_prog_compiler_wl='-Wl,'
97199716 lt_prog_compiler_pic='-KPIC'
9717 lt_prog_compiler_static='-static'
9718 ;;
9719 # flang / f18. f95 an alias for gfortran or flang on Debian
9720 flang* | f18* | f95*)
9721 lt_prog_compiler_wl='-Wl,'
9722 lt_prog_compiler_pic='-fPIC'
97209723 lt_prog_compiler_static='-static'
97219724 ;;
97229725 # icc used to be incompatible with GCC.
1366113664 # Commands to make compiler produce verbose output that lists
1366213665 # what "hidden" libraries, object files and flags are used when
1366313666 # linking a shared library.
13664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1366513668
1366613669 else
1366713670 GXX=no
1415314156 # explicitly linking system object files so we need to strip them
1415414157 # from the output so that they don't get included in the library
1415514158 # dependencies.
14156 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14159 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1415714160 ;;
1415814161 *)
1415914162 if test yes = "$GXX"; then
1421814221 # explicitly linking system object files so we need to strip them
1421914222 # from the output so that they don't get included in the library
1422014223 # dependencies.
14221 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14224 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
1422214225 ;;
1422314226 *)
1422414227 if test yes = "$GXX"; then
1455714560 # Commands to make compiler produce verbose output that lists
1455814561 # what "hidden" libraries, object files and flags are used when
1455914562 # linking a shared library.
14560 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1456114564
1456214565 else
1456314566 # FIXME: insert proper C++ library support
1464114644 # Commands to make compiler produce verbose output that lists
1464214645 # what "hidden" libraries, object files and flags are used when
1464314646 # linking a shared library.
14644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14647 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1464514648 else
1464614649 # g++ 2.7 appears to require '-G' NOT '-shared' on this
1464714650 # platform.
1465214655 # Commands to make compiler produce verbose output that lists
1465314656 # what "hidden" libraries, object files and flags are used when
1465414657 # linking a shared library.
14655 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14658 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
1465614659 fi
1465714660
1465814661 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1885518858 # report actual input values of CONFIG_FILES etc. instead of their
1885618859 # values after options handling.
1885718860 ac_log="
18858 This file was extended by protobuf-c $as_me 1.3.1, which was
18861 This file was extended by protobuf-c $as_me 1.3.2, which was
1885918862 generated by GNU Autoconf 2.69. Invocation command line was
1886018863
1886118864 CONFIG_FILES = $CONFIG_FILES
1892218925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1892318926 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1892418927 ac_cs_version="\\
18925 protobuf-c config.status 1.3.1
18928 protobuf-c config.status 1.3.2
1892618929 configured by $0, generated by GNU Autoconf 2.69,
1892718930 with options \\"\$ac_cs_config\\"
1892818931
00 AC_PREREQ(2.63)
11
22 AC_INIT([protobuf-c],
3 [1.3.1],
3 [1.3.2],
44 [https://github.com/protobuf-c/protobuf-c/issues],
55 [protobuf-c],
66 [https://github.com/protobuf-c/protobuf-c])
40624062 if AC_TRY_EVAL(ac_compile); then
40634063 # Now try to grab the symbols.
40644064 nlist=conftest.nm
4065 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4065 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
4066 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
40664067 # Try sorting and uniquifying the output.
40674068 if sort "$nlist" | uniq > "$nlist"T; then
40684069 mv -f "$nlist"T "$nlist"
47024703 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
47034704 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
47044705 ;;
4706 # flang / f18. f95 an alias for gfortran or flang on Debian
4707 flang* | f18* | f95*)
4708 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4709 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4710 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4711 ;;
47054712 # icc used to be incompatible with GCC.
47064713 # ICC 10 doesn't accept -KPIC any more.
47074714 icc* | ifort*)
64376444 # Commands to make compiler produce verbose output that lists
64386445 # what "hidden" libraries, object files and flags are used when
64396446 # linking a shared library.
6440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
64416448
64426449 else
64436450 GXX=no
68126819 # explicitly linking system object files so we need to strip them
68136820 # from the output so that they don't get included in the library
68146821 # dependencies.
6815 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6822 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
68166823 ;;
68176824 *)
68186825 if test yes = "$GXX"; then
68776884 # explicitly linking system object files so we need to strip them
68786885 # from the output so that they don't get included in the library
68796886 # dependencies.
6880 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6887 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
68816888 ;;
68826889 *)
68836890 if test yes = "$GXX"; then
72167223 # Commands to make compiler produce verbose output that lists
72177224 # what "hidden" libraries, object files and flags are used when
72187225 # linking a shared library.
7219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
72207227
72217228 else
72227229 # FIXME: insert proper C++ library support
73007307 # Commands to make compiler produce verbose output that lists
73017308 # what "hidden" libraries, object files and flags are used when
73027309 # linking a shared library.
7303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
73047311 else
73057312 # g++ 2.7 appears to require '-G' NOT '-shared' on this
73067313 # platform.
73117318 # Commands to make compiler produce verbose output that lists
73127319 # what "hidden" libraries, object files and flags are used when
73137320 # linking a shared library.
7314 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7321 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
73157322 fi
73167323
73177324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
20712071 unsigned shift = 4;
20722072 unsigned rv;
20732073
2074 /* 0 is not a valid tag value */
2075 if ((data[0] & 0xf8) == 0) {
2076 return 0;
2077 }
2078
20742079 *wiretype_out = data[0] & 7;
20752080 if ((data[0] & 0x80) == 0) {
20762081 *tag_out = tag;
21022107 const uint8_t *data; /**< Pointer to field data. */
21032108 };
21042109
2105 static inline uint32_t
2110 static inline size_t
21062111 scan_length_prefixed_data(size_t len, const uint8_t *data,
21072112 size_t *prefix_len_out)
21082113 {
21092114 unsigned hdr_max = len < 5 ? len : 5;
21102115 unsigned hdr_len;
2111 uint32_t val = 0;
2116 size_t val = 0;
21122117 unsigned i;
21132118 unsigned shift = 0;
21142119
21152120 for (i = 0; i < hdr_max; i++) {
2116 val |= (data[i] & 0x7f) << shift;
2121 val |= ((size_t)data[i] & 0x7f) << shift;
21172122 shift += 7;
21182123 if ((data[i] & 0x80) == 0)
21192124 break;
21242129 }
21252130 hdr_len = i + 1;
21262131 *prefix_len_out = hdr_len;
2132 if (val > INT_MAX) {
2133 // Protobuf messages should always be less than 2 GiB in size.
2134 // We also want to return early here so that hdr_len + val does
2135 // not overflow on 32-bit systems.
2136 PROTOBUF_C_UNPACK_ERROR("length prefix of %lu is too large", val);
2137 return 0;
2138 }
21272139 if (hdr_len + val > len) {
2128 PROTOBUF_C_UNPACK_ERROR("data too short after length-prefix of %u", val);
2140 PROTOBUF_C_UNPACK_ERROR("data too short after length-prefix of %lu", val);
21292141 return 0;
21302142 }
21312143 return hdr_len + val;
26282640
26292641 /* If we have already parsed a member of this oneof, free it. */
26302642 if (*oneof_case != 0) {
2643 const ProtobufCFieldDescriptor *old_field;
2644 size_t el_size;
26312645 /* lookup field */
26322646 int field_index =
26332647 int_range_lookup(message->descriptor->n_field_ranges,
26352649 *oneof_case);
26362650 if (field_index < 0)
26372651 return FALSE;
2638 const ProtobufCFieldDescriptor *old_field =
2639 message->descriptor->fields + field_index;
2640 size_t el_size = sizeof_elt_in_repeated_array(old_field->type);
2652 old_field = message->descriptor->fields + field_index;
2653 el_size = sizeof_elt_in_repeated_array(old_field->type);
26412654
26422655 switch (old_field->type) {
26432656 case PROTOBUF_C_TYPE_STRING: {
34143427 ProtobufCLabel label = f->label;
34153428 void *field = STRUCT_MEMBER_P (message, f->offset);
34163429
3430 if (f->flags & PROTOBUF_C_FIELD_FLAG_ONEOF) {
3431 const uint32_t *oneof_case = STRUCT_MEMBER_P (message, f->quantifier_offset);
3432 if (f->id != *oneof_case) {
3433 continue; //Do not check if it is an unpopulated oneof member.
3434 }
3435 }
3436
34173437 if (label == PROTOBUF_C_LABEL_REPEATED) {
34183438 size_t *quantity = STRUCT_MEMBER_P (message, f->quantifier_offset);
34193439
789789 * The version of the protobuf-c headers, represented as a string using the same
790790 * format as protobuf_c_version().
791791 */
792 #define PROTOBUF_C_VERSION "1.3.1"
792 #define PROTOBUF_C_VERSION "1.3.2"
793793
794794 /**
795795 * The version of the protobuf-c headers, represented as an integer using the
796796 * same format as protobuf_c_version_number().
797797 */
798 #define PROTOBUF_C_VERSION_NUMBER 1003001
798 #define PROTOBUF_C_VERSION_NUMBER 1003002
799799
800800 /**
801801 * The minimum protoc-c version which works with the current version of the
139139
140140 if (descriptor_->label() == FieldDescriptor::LABEL_REPEATED
141141 && is_packable_type (descriptor_->type())
142 && descriptor_->options().packed())
142 && descriptor_->options().packed()) {
143143 variables["flags"] += " | PROTOBUF_C_FIELD_FLAG_PACKED";
144 } else if (descriptor_->label() == FieldDescriptor::LABEL_REPEATED
145 && is_packable_type (descriptor_->type())
146 && FieldSyntax(descriptor_) == 3
147 && !descriptor_->options().has_packed()) {
148 variables["flags"] += " | PROTOBUF_C_FIELD_FLAG_PACKED";
149 }
144150
145151 if (descriptor_->options().deprecated())
146152 variables["flags"] += " | PROTOBUF_C_FIELD_FLAG_DEPRECATED";
997997 static void dump_test_unknown_fields (void)
998998 {
999999 EmptyMess mess;
1000 const google::protobuf::Message::Reflection *reflection = mess.GetReflection();
1000 const google::protobuf::Reflection *reflection = mess.GetReflection();
10011001 google::protobuf::UnknownFieldSet *fs = reflection->MutableUnknownFields(&mess);
10021002
10031003 #if GOOGLE_PROTOBUF_VERSION >= 2001000
963963 DO_TEST (&submess, test_optional_submess_42);
964964 #undef DO_TEST
965965 }
966
967 static void test_oneof_message_check(void)
968 {
969 Foo__TestMessOneof msg = FOO__TEST_MESS_ONEOF__INIT;
970 msg.test_oneof_case = FOO__TEST_MESS_ONEOF__TEST_ONEOF_TEST_STRING;
971 msg.test_string = "Hello, world!";
972 assert(protobuf_c_message_check((ProtobufCMessage *)&msg));
973 }
974
966975 static void test_oneof_merge (void)
967976 {
968977 Foo__TestMessOneof *msg;
22592268 { "test oneof string", test_oneof_string },
22602269 { "test oneof bytes", test_oneof_bytes },
22612270 { "test oneof SubMess", test_oneof_SubMess },
2271 { "test oneof message check", test_oneof_message_check },
22622272 { "test merged oneof unpack", test_oneof_merge },
22632273
22642274 { "test empty repeated" ,test_empty_repeated },
0 #include <stdlib.h>
1 #include <string.h>
2
3 #include "t/issue330/issue330.pb-c.h"
4
5 int main(void)
6 {
7 /* Output of $ echo acl_id: 2 acl_id: 3 | protoc issue330.proto \
8 * --encode=pbr_route | xxd -i: 0x52, 0x02, 0x02, 0x03
9 */
10 uint8_t protoc[] = {0x52, 0x02, 0x02, 0x03};
11 PbrRoute msg = PBR_ROUTE__INIT;
12 int ids[] = {2, 3};
13 uint8_t buf[16] = {0};
14 size_t sz = 0;
15
16 msg.n_acl_id = 2;
17 msg.acl_id = ids;
18 sz = pbr_route__pack(&msg, buf);
19
20 assert (sz == sizeof protoc);
21 assert (memcmp (protoc, buf, sz) == 0);
22
23 return EXIT_SUCCESS;
24 }
0 syntax = "proto3";
1
2 message pbr_route {
3 repeated int32 acl_id = 10;
4 }
0 #include <assert.h>
1 #include <stdlib.h>
2
3 #include "t/issue375/issue375.pb-c.h"
4
5 int main(void) {
6 // This buffer represents some serialized bytes where we have a length
7 // delimiter of 2^32 - 1 bytes for a particular repeated int32 field.
8 // We want to make sure that parsing a length delimiter this large does
9 // not cause a problematic integer overflow.
10 uint8_t buffer[] = {
11 // Field 1 with wire type 2 (length-delimited)
12 0x0a,
13 // Varint length delimiter: 2^32 - 1
14 0xff, 0xff, 0xff, 0xff, 0x0f,
15 };
16 // The parser should detect that this message is malformed and return
17 // null.
18 Issue375__TestMessage* m =
19 issue375__test_message__unpack(NULL, sizeof(buffer), buffer);
20 assert(m == NULL);
21
22 return EXIT_SUCCESS;
23 }
0 syntax = "proto2";
1
2 package issue375;
3
4 message TestMessage {
5 repeated int32 nums = 1;
6 }