Fossil SCM
Cherrypick [8184f39d803f9ad6|8184f39d]: Fix crash in /reports page, when compiling with recent gcc. (this is NOT an -O2 optimization bug!)
Commit
08709aa79cfd1552efd94824196da207d0909641
Parent
9c65b5432e4aeec…
4 files changed
+1
-1
+1
-1
+1
-1
+1
-1
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN yum update -y && yum install -y gcc make zlib-devel openssl-devel tar && yum clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "release", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION trunk | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-1.33 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-shared --disable-threads --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-lineedit --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN yum update -y && yum install -y gcc make zlib-devel openssl-devel tar && yum clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "release", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION trunk |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-shared --disable-threads --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-lineedit --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN yum update -y && yum install -y gcc make zlib-devel openssl-devel tar && yum clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "release", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-1.33 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-shared --disable-threads --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-lineedit --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl |
| 16 |
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN yum update -y && yum install -y gcc make zlib-devel openssl-devel tar && yum clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "release", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION trunk | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-1.33 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-shared --disable-threads --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-lineedit --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN yum update -y && yum install -y gcc make zlib-devel openssl-devel tar && yum clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "release", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION trunk |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-shared --disable-threads --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-lineedit --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN yum update -y && yum install -y gcc make zlib-devel openssl-devel tar && yum clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "release", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-1.33 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-shared --disable-threads --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-lineedit --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl |
| 16 |
+1
-1
| --- src/statrep.c | ||
| +++ src/statrep.c | ||
| @@ -691,10 +691,11 @@ | ||
| 691 | 691 | HQuery url; /* URL for various branch links */ |
| 692 | 692 | const char *zView = P("view"); /* Which view/report to show. */ |
| 693 | 693 | int eType = RPT_NONE; /* Numeric code for view/report to show */ |
| 694 | 694 | int i; /* Loop counter */ |
| 695 | 695 | const char *zUserName; /* Name of user */ |
| 696 | + const char *azView[16]; /* Drop-down menu of view types */ | |
| 696 | 697 | const struct { |
| 697 | 698 | const char *zName; /* Name of view= screen type */ |
| 698 | 699 | const char *zVal; /* Value of view= query parameter */ |
| 699 | 700 | int eType; /* Corresponding RPT_* define */ |
| 700 | 701 | } aViewType[] = { |
| @@ -731,11 +732,10 @@ | ||
| 731 | 732 | } |
| 732 | 733 | url_initialize(&url, "reports"); |
| 733 | 734 | cgi_query_parameters_to_url(&url); |
| 734 | 735 | if( eType!=RPT_NONE ){ |
| 735 | 736 | int nView = 0; /* Slots used in azView[] */ |
| 736 | - const char *azView[16]; /* Drop-down menu of view types */ | |
| 737 | 737 | for(i=0; i<ArraySize(aViewType); i++){ |
| 738 | 738 | azView[nView++] = aViewType[i].zVal; |
| 739 | 739 | azView[nView++] = aViewType[i].zName; |
| 740 | 740 | } |
| 741 | 741 | if( eType!=RPT_BYFILE ){ |
| 742 | 742 |
| --- src/statrep.c | |
| +++ src/statrep.c | |
| @@ -691,10 +691,11 @@ | |
| 691 | HQuery url; /* URL for various branch links */ |
| 692 | const char *zView = P("view"); /* Which view/report to show. */ |
| 693 | int eType = RPT_NONE; /* Numeric code for view/report to show */ |
| 694 | int i; /* Loop counter */ |
| 695 | const char *zUserName; /* Name of user */ |
| 696 | const struct { |
| 697 | const char *zName; /* Name of view= screen type */ |
| 698 | const char *zVal; /* Value of view= query parameter */ |
| 699 | int eType; /* Corresponding RPT_* define */ |
| 700 | } aViewType[] = { |
| @@ -731,11 +732,10 @@ | |
| 731 | } |
| 732 | url_initialize(&url, "reports"); |
| 733 | cgi_query_parameters_to_url(&url); |
| 734 | if( eType!=RPT_NONE ){ |
| 735 | int nView = 0; /* Slots used in azView[] */ |
| 736 | const char *azView[16]; /* Drop-down menu of view types */ |
| 737 | for(i=0; i<ArraySize(aViewType); i++){ |
| 738 | azView[nView++] = aViewType[i].zVal; |
| 739 | azView[nView++] = aViewType[i].zName; |
| 740 | } |
| 741 | if( eType!=RPT_BYFILE ){ |
| 742 |
| --- src/statrep.c | |
| +++ src/statrep.c | |
| @@ -691,10 +691,11 @@ | |
| 691 | HQuery url; /* URL for various branch links */ |
| 692 | const char *zView = P("view"); /* Which view/report to show. */ |
| 693 | int eType = RPT_NONE; /* Numeric code for view/report to show */ |
| 694 | int i; /* Loop counter */ |
| 695 | const char *zUserName; /* Name of user */ |
| 696 | const char *azView[16]; /* Drop-down menu of view types */ |
| 697 | const struct { |
| 698 | const char *zName; /* Name of view= screen type */ |
| 699 | const char *zVal; /* Value of view= query parameter */ |
| 700 | int eType; /* Corresponding RPT_* define */ |
| 701 | } aViewType[] = { |
| @@ -731,11 +732,10 @@ | |
| 732 | } |
| 733 | url_initialize(&url, "reports"); |
| 734 | cgi_query_parameters_to_url(&url); |
| 735 | if( eType!=RPT_NONE ){ |
| 736 | int nView = 0; /* Slots used in azView[] */ |
| 737 | for(i=0; i<ArraySize(aViewType); i++){ |
| 738 | azView[nView++] = aViewType[i].zVal; |
| 739 | azView[nView++] = aViewType[i].zName; |
| 740 | } |
| 741 | if( eType!=RPT_BYFILE ){ |
| 742 |
+1
-1
| --- src/statrep.c | ||
| +++ src/statrep.c | ||
| @@ -691,10 +691,11 @@ | ||
| 691 | 691 | HQuery url; /* URL for various branch links */ |
| 692 | 692 | const char *zView = P("view"); /* Which view/report to show. */ |
| 693 | 693 | int eType = RPT_NONE; /* Numeric code for view/report to show */ |
| 694 | 694 | int i; /* Loop counter */ |
| 695 | 695 | const char *zUserName; /* Name of user */ |
| 696 | + const char *azView[16]; /* Drop-down menu of view types */ | |
| 696 | 697 | const struct { |
| 697 | 698 | const char *zName; /* Name of view= screen type */ |
| 698 | 699 | const char *zVal; /* Value of view= query parameter */ |
| 699 | 700 | int eType; /* Corresponding RPT_* define */ |
| 700 | 701 | } aViewType[] = { |
| @@ -731,11 +732,10 @@ | ||
| 731 | 732 | } |
| 732 | 733 | url_initialize(&url, "reports"); |
| 733 | 734 | cgi_query_parameters_to_url(&url); |
| 734 | 735 | if( eType!=RPT_NONE ){ |
| 735 | 736 | int nView = 0; /* Slots used in azView[] */ |
| 736 | - const char *azView[16]; /* Drop-down menu of view types */ | |
| 737 | 737 | for(i=0; i<ArraySize(aViewType); i++){ |
| 738 | 738 | azView[nView++] = aViewType[i].zVal; |
| 739 | 739 | azView[nView++] = aViewType[i].zName; |
| 740 | 740 | } |
| 741 | 741 | if( eType!=RPT_BYFILE ){ |
| 742 | 742 |
| --- src/statrep.c | |
| +++ src/statrep.c | |
| @@ -691,10 +691,11 @@ | |
| 691 | HQuery url; /* URL for various branch links */ |
| 692 | const char *zView = P("view"); /* Which view/report to show. */ |
| 693 | int eType = RPT_NONE; /* Numeric code for view/report to show */ |
| 694 | int i; /* Loop counter */ |
| 695 | const char *zUserName; /* Name of user */ |
| 696 | const struct { |
| 697 | const char *zName; /* Name of view= screen type */ |
| 698 | const char *zVal; /* Value of view= query parameter */ |
| 699 | int eType; /* Corresponding RPT_* define */ |
| 700 | } aViewType[] = { |
| @@ -731,11 +732,10 @@ | |
| 731 | } |
| 732 | url_initialize(&url, "reports"); |
| 733 | cgi_query_parameters_to_url(&url); |
| 734 | if( eType!=RPT_NONE ){ |
| 735 | int nView = 0; /* Slots used in azView[] */ |
| 736 | const char *azView[16]; /* Drop-down menu of view types */ |
| 737 | for(i=0; i<ArraySize(aViewType); i++){ |
| 738 | azView[nView++] = aViewType[i].zVal; |
| 739 | azView[nView++] = aViewType[i].zName; |
| 740 | } |
| 741 | if( eType!=RPT_BYFILE ){ |
| 742 |
| --- src/statrep.c | |
| +++ src/statrep.c | |
| @@ -691,10 +691,11 @@ | |
| 691 | HQuery url; /* URL for various branch links */ |
| 692 | const char *zView = P("view"); /* Which view/report to show. */ |
| 693 | int eType = RPT_NONE; /* Numeric code for view/report to show */ |
| 694 | int i; /* Loop counter */ |
| 695 | const char *zUserName; /* Name of user */ |
| 696 | const char *azView[16]; /* Drop-down menu of view types */ |
| 697 | const struct { |
| 698 | const char *zName; /* Name of view= screen type */ |
| 699 | const char *zVal; /* Value of view= query parameter */ |
| 700 | int eType; /* Corresponding RPT_* define */ |
| 701 | } aViewType[] = { |
| @@ -731,11 +732,10 @@ | |
| 732 | } |
| 733 | url_initialize(&url, "reports"); |
| 734 | cgi_query_parameters_to_url(&url); |
| 735 | if( eType!=RPT_NONE ){ |
| 736 | int nView = 0; /* Slots used in azView[] */ |
| 737 | for(i=0; i<ArraySize(aViewType); i++){ |
| 738 | azView[nView++] = aViewType[i].zVal; |
| 739 | azView[nView++] = aViewType[i].zName; |
| 740 | } |
| 741 | if( eType!=RPT_BYFILE ){ |
| 742 |