☰
Debian Codegraph
@
1.58.0-1
1.57.1-2
/
/
subprojects
/
fontconfig
/
meson-cc-tests
/
flexible-array-member-test.c
☽
☼
subprojects/fontconfig/meson-cc-tests/flexible-array-member-test.c
code
plain
raw
LGPL-2+
and
LGPL-2.1+
1999-2019 Red Hat; 1999-2006 Red Hat Software; 2021 Red Hat, Inc.; 2005-2007 Imendio AB; 2007 Novell, Inc; 2001 Sun Microsystems; 2000 SuSE Linux Ltd; 2005 Amit Aronovitch; 2012 Emmanuele Bassi; 2008 Jürg Billeter; 2001 Hans Breuer; 2002-2020 Matthias Clasen; 2001, 2002, 2006 Behdad Esfahbod; 2016 Chun-wei Fan; 2001 Alexander Larsson; 2012 Ryan Lortie; 2003 Noah Levitt; 2000-2002 Tor Lillqvist; 2000, 2005 Keith Packard; 2010, 2012 Kristian Rietveld; 2021 GNOME Foundation; 2021 Jordi Mas i Hernàndez; 2021 Benjamin Otte; Owen Taylor; Abigail Brady; Sivaraj Doddannan; Karl Koehler; Havoc Pennington; Roozbeh Pournader; Changwoo Ryu; Chookij Vanatham
debian/copyright
1
#include <stddef.h>
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
struct s {
6
int n;
7
double d[];
8
};
9
10
int
11
main (void)
12
{
13
int m = getchar();
14
struct s *p = malloc (offsetof (struct s, d) + m * sizeof (double));
15
p->d[0] = 0.0;
16
return p->d != (double *)NULL;
17
}